Re: DB_Dataobject Insert Problem with getting id
| From: | Sebastian Ganschow | Date: | Mon, 24 Oct 2005 19:10:16 +0000 |
| Subject: | Re: DB_Dataobject Insert Problem with getting id | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21618@lists.php.net to get a copy of this message | ||
Justin Patrin schrieb:
Regards SebastianSo I don't want to use sequence keys, but the auto increment. If this behavior is correct, how can I use auto increment.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. Thanks for your answer. I'll try it tomorrow.