Re: db_dataobjects and insertId()

From: Date: Wed, 14 Apr 2004 05:51:14 +0000
Subject: Re: db_dataobjects and insertId()
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27614@lists.php.net to get a copy of this message
that's the way how i was doing it, ... now i know it works without setting the key-value too Problem solved...implementation of what i asked indeed not needed. thx
Alan Knowles wrote:
you can use $dh = getDatabaseConnection();
that should be : $dh = $dataobject->getDatabaseConnection();
$dh->nextId(); dataobjects calls nextID internally on inserts by default. - so it usually isnt really necessary.. Regards Alan Michaël Willemot wrote:
Is there a technical reason why the nextId() function (which is available in pear::db) isn't available in pear::db_dataobject? Or has this feature just never been asked before? Will it ever be implemented? greetz,


« previous php.pear.dev (#27614) next »