RE: [PEAR] Re: DataObjects: override insert value
| From: | ThE LinuX_KiD | Date: | Tue, 08 Jun 2004 09:32:01 +0000 |
| Subject: | RE: [PEAR] Re: DataObjects: override insert value | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12994@lists.php.net to get a copy of this message | ||
Thank you very much !!
this:
-> function insertWithID() {
-> $this->query("insert into {$this->__table} (id) values ({this->id})");
-> $x = new DataObject_foo;
-> $x->get($this->id);
-> $x->setFrom($this);
-> $x->update();
-> }
->
has worked!
but, this don't.
-> a) remove the auto_increment feature on the database, as you are not
-> using it.
what is this ?
-> b) override keys() to return an empty array()
bests.
andres.