Ticket #1361 (closed defect: invalid)
Doctrine fails to discover auto-generated classes
| Reported by: | warden | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Attributes | Version: | 1.0.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
ok, the structure is like this.
. ./library/Doctrine.php ./library/Doctrine/* ./scripts/models/... ./scripts/models/generated/... ./scripts/generate_classes.php ./scripts/syncdb.php
now, syncdb.php contains: require_once('../library/Doctrine.php'); spl_autoload_register(array('Doctrine', 'autoload'));
//in order to export we need a database connection Doctrine_Manager::connection('....
Doctrine::dropDatabases(); Doctrine::createDatabases(); Doctrine::createTablesFromModels('models');
Error: Fatal error: Class 'BaseXXX' not found ...
After stracing, i can see that Doctrine is searching for some weird reason for the base classes in library dir ./library/BaseXxx.php . Even weirder, this DOES work on my windows xampp (php 5.2.5) , but it doesn't work on linux machine ( debian - php 5.2.6-2+b1 ) when I put 'require_once "generated/Basexxx.php";' then it works.