Re: DataObject tweak ok with DB and MDB2
| From: | Dan Rossi | Date: | Thu, 07 Apr 2005 04:51:46 +0000 |
| Subject: | Re: DataObject tweak ok with DB and MDB2 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18594@lists.php.net to get a copy of this message | ||
On 07/04/2005, at 2:38 PM, Justin Patrin wrote:
Ok bad dog dan, its now returning an id, but here is how i am setting it up in one of the DO's, I cant work out why the someID field in the main table was coming up blank. $this->setValue('someID',$othertable->insert()) inside othertable do if ($this->findValue()) { return $this->someID; } else { return parent::insert(); } inside findValue does a whereadd if ($this->find(true) > 1 ) { return true; } return false;Argh. Bad Dan, Bad! Get rid of everything between case 'mysql' and case 'mysqli'. IT WAS WORKING BEFORE! -- Justin Patrin