Re: db_dataobjects and insertId()
| From: | Alan Knowles | Date: | Wed, 14 Apr 2004 05:44:03 +0000 |
| Subject: | Re: db_dataobjects and insertId() | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-27613@lists.php.net to get a copy of this message | ||
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:-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.comIs 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,