DB_DataObject 1.8.7 does not update db classes/ini after schema update
| From: | Druid | Date: | Sat, 10 Nov 2007 14:41:03 +0000 |
| Subject: | DB_DataObject 1.8.7 does not update db classes/ini after schema update | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28172@lists.php.net to get a copy of this message | ||
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 ?
--
with regards,
Druid