#1197: Doctrine 1.2 loading doctrine generated models problem
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  david   
     Type:  defect     |      Status:  new     
 Priority:  normal     |   Milestone:  1.0.2   
Component:  database   |     Version:  1.0.2RC3
 Severity:  normal     |    Keywords:          
Has_patch:  0          |  
-----------------------+----------------------------------------------------

Comment(by codecop):

 To make Doctrine1.2 load all generated models Doctrine needs to initialise
 2 more functions in AgaviDoctrineDatabase:

 .....

 92      // in any case, it's loaded now. maybe we need to register the
 autoloading stuff for it!

 93      if(!in_array(array('Doctrine', 'autoload'),
 spl_autoload_functions())) {

 94              // we do

 96              spl_autoload_register(array('Doctrine', 'autoload'));

 97      }

 .......

 needs to write all this 3 lines:
 ....
 spl_autoload_register(array('Doctrine', 'autoload'));
 +++spl_autoload_register(array('Doctrine', 'modelsAutoload'));
 +++spl_autoload_register(array('Doctrine', 'extensionsAutoload'));
 ....


 These functions static methods do exist, but after adding these lines
 exception occurs that says: Passed array does not specify an existing
 static method.

 Anyone knows whats the problem and how to initialize these methods?

-- 
Ticket URL: <http://trac.agavi.org/ticket/1197#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to