Re: Re: DataObject 0.10 & 0.11 bug?? - MEANT 0.11 & 0.12
| From: | Demian Turner | Date: | Wed, 22 Jan 2003 18:13:06 +0000 |
| Subject: | Re: Re: DataObject 0.10 & 0.11 bug?? - MEANT 0.11 & 0.12 | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev php.pear.general |
| Request: | Send a blank email to pear-dev+get-12665@lists.php.net to get a copy of this message | ||
Jeroen,
I had a similar problem, you must modify a few settings if using 0.11
- in your options array, you must add a new element, 'debug_ignore_updates' as follows
$options = array(
'database' => 'mysql://root@localhost/db','schema_location' => '/path/to/schema',
'class_location' => '/path/to/class', 'require_prefix' => 'DataObjects/', 'class_prefix' => 'DataObjects_', 'debug' => 0,'production' => 1, 'debug_ignore_updates' => 1 ); - if you're using 0.11, rename your links file to dbname.links leaving out the '.ini' however this is fixed in 0.12 hth, Demian http://www.phpkitchen.com Jeroen Houben wrote:
Wrong subject I meant 0.11 & 0.12!I have a simple script that insert data into a table using DataObjects: $task = new DataObjects_Staff_tasks; $task->setFrom($_POST); $task->inserted = 'now()'; $task->insert(); It doesn't work anymore using 0.12. Same happens with another similar script. I first went back to 0.11 - same problem. I then went back to 0.10 and all works fine. I don't know how I can get to the actual mysql error so I can't work out what the problem is. I can see the query though and when I cut and paste that into a mysql console it inserts the row just fine.. Jeroen -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php