Re: DB_Dataobject Insert Problem with getting id
| From: | Sebastian Ganschow | Date: | Tue, 25 Oct 2005 10:45:33 +0000 |
| Subject: | Re: DB_Dataobject Insert Problem with getting id | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21630@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
If you're using mysql you don't have to do anything. It will work without any options set. If you're using another DB try it. If it doesn't work you probably need to override sequenceKey() for your DOs and return the correct values.Hi, I removed the option ignore_sequence_keys = ALL, but now dataobject has created new tables and is using sequence keys. We're using MySQL 4.1.11 and the tables, where we want to get this ids, have the id fields set to auto increment. I thought the documentation meant, that dataobject will allways use sequence keys, but if your tell it not to use seq-keys, it will use the native auto increment support. It looks like I have to override sequenceKey(). Sebastian -- Sebastian Ganschow Internet Solutions i-solutions@buelow-masiak.de Dr. Bülow & Masiak GmbH Victoriastrasse 119 45772 Marl Germany Telefon: 02365 4146-0