Home » Database » DB_DataObject » Bug #4646
Portability Does not Work Even though the example.ini demonstrates it.
Details
| Submitted | 2005-06-20 21:51 UTC |
|---|---|
| From | pnovess at mac dot com |
| Status | No Feedback |
| Package | DB_DataObject |
| PHP Version | 5.0.4 |
| OS | Fedora Core 3 |
| Roadmaps | (Not assigned) |
Comments
[2005-06-20 21:51 UTC] pnovess at mac dot com
Description:
------------
I tried generating my classes using the ini file below. However, I can't get the portability to work correctly. It always generates uppercase tables and fields. I'm using oracle so this would be handy. Especially since it demonstrates using it in the example.ini file.
Thanks,
Phill
[DB]
portability = 15
; if you are working with oracle (or plan to) - this will do things
; like force lowercase table names (see the PEAR DB manual
[DB_DataObject]
; PEAR::DB DSN
database = "oci8://sales:password@(DESCRIPTION =(ADDRESS=(PROTOCOL=TCP)(HOST=fox)(PORT=1521))(CONNECT_DATA=(SID = devr)))"
build_views = 0
; Location where sitepoint.ini schema file should be created
schema_location = /u1/sales/html/example
; Location where DataObject classes should be created
class_location = /u1/sales/html/example
; Prefix for including files from your code
require_prefix = example/
; Classes should be prefixed with this string e.g. DataObject_User
class_prefix = DataObject_
; Debugging information: 0=off, 1=display sql, 2=display results,
; 3=everything
debug = 3
; Prevent SQL INSERT, UPDATE or DELETE from being performed
debug_ignore_updates = false
; Whether to die of error with a PEAR_ERROR_DIE or not
dont_die = false
Reproduce code:
---------------
[DB_DataObject]
; PEAR::DB DSN
database = "oci8://sales:password@(DESCRIPTION =(ADDRESS=(PROTOCOL=TCP)(HOST=fox)(PORT=1521))(CONNECT_DATA=(SID = devr)))"
build_views = 0
; Location where sitepoint.ini schema file should be created
schema_location = /u1/sales/html/example
; Location where DataObject classes should be created
class_location = /u1/sales/html/example
; Prefix for including files from your code
require_prefix = example/
; Classes should be prefixed with this string e.g. DataObject_User
class_prefix = DataObject_
; Debugging information: 0=off, 1=display sql, 2=display results,
; 3=everything
debug = 3
; Prevent SQL INSERT, UPDATE or DELETE from being performed
debug_ignore_updates = false
; Whether to die of error with a PEAR_ERROR_DIE or not
dont_die = false
Expected result:
----------------
Generate classes with lowercase names for fields/properties and tables/classes.
Actual result:
--------------
Upper case everything.