Re: Overriding primary key field with DB_DataObject
| From: | Justin Patrin | Date: | Sun, 21 Aug 2005 17:19:38 +0000 |
| Subject: | Re: Overriding primary key field with DB_DataObject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20508@lists.php.net to get a copy of this message | ||
On 8/21/05, red <red@raven.ch> wrote:
> Hi
> I'm trying to insert some entries in a table which will use
> auto_increment for id-assignement. But for the initial setup I need to
> write the entries including the key to maintain the relations. How can
> this be done with DataObjects?
You may be able to do it with the correct settings to sequenceKey().
I would suggest as an alternative you can create an initial database
and dump it with mysqldump then import that.
--
Justin Patrin