|
| Hi all,
I'm using DD_DataObject to automatically create data object codes. My
problem is as follows:
1) I can't generate the codes by using database_* in the configuration
option. The createTable.php script spits out the following error:
Fatal error: Undefined class name 'db
c:\php\pear\DB\DataObject\Generator.php on line 113
The config file are as follows:
[DB_DataObject]
database_mysql = mysql://user:passwords@localhost/database
database_oracle = oci8://user:password@sid
schema_location_mysql = C:/Inetpub/wwwroot/project/MyDataObjects
schema_location_oracle = C:/Inetpub/wwwroot/project/OraDataObjects
class_location_mysql = C:/Inetpub/wwwroot/project/MyDataObjects
class_location_oracle = C:/Inetpub/wwwroot/project/OraDataObjects
class_prefix_mysql = My_
class_prefix_oracle = Ora_
require_prefix_mysql = MyDataObjects/
require_prefix_oracle = OraDataObjects/
debug = 3
2. Assuming that I managed to get the above problem solved, how then do I
get about in using DDO to reference two databases? What I mean is, at one
portion of my code, I need to retrieve values from the Oracle database,
and then insert them to the MySQL database. The table names are different.
Regards,
--mel
|
|