Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.2

Bug #13789 Portability settings from ini file ignored in Generator
Submitted: 2008-04-28 11:08 UTC Modified: 2008-04-28 21:22 UTC
From: davidsimpson Assigned: alan_k
Status: Closed Package: DB_DataObject (version 1.8.8)
PHP Version: 5.1.4 OS: Windows/ Solaris
Roadmaps: 1.99    
Subscription  


 [2008-04-28 11:08 UTC] davidsimpson (David Simpson)
Description: ------------ With a DB_DataObject configuration set to use MDB2, and appropriate portability and field_case options specified for case settings etc, running create tables generates class files with all upper case table and field names. Commenting out the two lines in Generator.php that contain: $__DB->setOption('portability', MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_FIX_CASE); Fixes the problem - classes are generated with table and field names in the case defined in the ini file settings. Test script: --------------- php %PHP_PEAR_INSTALL_DIR%\DB\DataObject\createTables.php private\db\resources\config.ini Expected result: ---------------- Classes generated with table names in the case specified in the ini file (lower case) and field names in lowercase, with class names e.g. DataObjects_Mytable. Actual result: -------------- Table and field names all appear in upper case, and the object names are DataObjects_MYTABLE.

Comments

 [2008-04-28 21:22 UTC] alan_k (Alan Knowles)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.