Re: Getting hold of newly created objects

[prev] [thread] [next] [Date index for 2005/07/01]

From: Tony Bowden
Subject: Re: Getting hold of newly created objects
Date: 12:27 on 01 Jul 2005
On Fri, Jul 01, 2005 at 12:19:59PM +0100, David Baird wrote:
> I'm wondering if I've got the wrong end of the stick here and I'm just
> being stupid. I need to create new objects and then work with them.
> After creating the object, CDBI throws away all the object's data. The
> primary key is an auto-increment column in MySQL - and the newly created
> object does not include its primary key value. So there's no way to
> retrieve the object from the db, or to get it to populate its column
> values.

You appear to be missing something.

Everything should just work fine.

Can you give an example of what you're trying to do that's failing?

Tony

Getting hold of newly created objects
David Baird 11:19 on 01 Jul 2005

Re: Getting hold of newly created objects
William Ross 12:13 on 01 Jul 2005

Re: Getting hold of newly created objects
Tony Bowden 12:27 on 01 Jul 2005

Re: Getting hold of newly created objects
David Baird 12:38 on 01 Jul 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52