Posted by Rik Wasmus on 11/19/07 19:09
On Mon, 19 Nov 2007 19:48:18 +0100, Sam <sgronblo@gmail.com> wrote:
> Recently started using DB_DataObject with a Postgresql DB. Seems
> pretty nice, but I am not sure if insert() is supposed to be able to
> return the id of a recently returned object. It just seems to return 1
> for me. I'm not really sure if DataObject gets confused because it
> would like to create the sequences itself which have been created for
> me automatically because I created the primary keys as serials. Or
> something like that. Would at least like to hear if it's supposed to
> work so I know if it's my fault that it's not working.
http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.insert.php
http://pear.php.net/manual/en/package.database.db.intro-sequences.php
--
Rik Wasmus
[Back to original message]
|