Ticket #1361 (closed defect: invalid)

Opened 19 months ago

Last modified 18 months ago

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.

Change History

Changed 19 months ago by warden

  • version changed from 0.11 to 1.0

Changed 19 months ago by jwage

  • status changed from new to closed
  • resolution set to invalid

Changed 18 months ago by anonymous

  • milestone New deleted

Milestone New deleted

Note: See TracTickets for help on using tickets.