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