yup, thats the way it should work.
i didnt try it through getPrimaryKey(),
but with a specific key. (like getFooId())


 --
 heiko braun, fork unstable media
 http://www.unstablemedia.com


On Mon, 15 Oct 2001 [EMAIL PROTECTED] wrote:

> Can anybody tell me if calling save() on a new object sets the primary key
> id of the object, so that I can say getPrimaryKey() after calling save.
> The reason being I need the PK of the newly created object after calling
> save and I know doInsert on the objectPeer class returns the PK but I can't
> seem to work out if the save method sets the PK?
>
> I want to say
> object.save();  /*object does not have the primary key set as I am using an
> auto increment*/
> pk = object.getPrimaryKey();
>
> Cheers
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to