Re: DB_DataObject 1.8.7 does not update db classes/ini after schema update

From: Date: Wed, 14 Nov 2007 07:40:35 +0000
Subject: Re: DB_DataObject 1.8.7 does not update db classes/ini after schema update
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-28175@lists.php.net to get a copy of this message
See: http://pear.php.net/bugs/bug.php?id=11634 Druid wrote:
Hello, I have been using DB_DataObject for some time and I'm satisfied by this project. But yesterday I've upgraded Pear classes, together with new 1.8.7 of DB_DataObject. And while developing my application, I've added new field to DB (normal text field, MySQL database). And after rebuilding DBDO classes my application wasn't accepting new data. After some while I've noticed that my DB auto generated classes were not updated with new field as well as schema .ini file. I've made some more tries and this was a reason. I've reverted back my Pear directory to 1.8.5 version DB_DataObject and this works well - after change in database, the relevant class is also updated and schema is also updated. In 1.8.7 only deleting auto generated class file makes it to be rebuild. This is not good idea as some classes have some custom code inside and deleting them is not an option. Also I've read change-logs between those 2 versions and I can't see anything interesting that may be conntected with this issue. The configuration file I used wasn't changed between 1.8.5 and 1.8.7 and it does look like this: [DB_DataObject]
database         = mysql://[user]:[pass]@localhost:[port]/[db_name]
schema_location = [physical_path] class_location = [physical_path] require_prefix = /dataobjects/
class_prefix     = DataObjects_
extends_location = DB/DataObject.php
extends          = DB_DataObject
and the execute command: c:\php\php.exe createTables.php [above .ini file] Any ideas what is wrong ?


« previous php.pear.general (#28175) next »