Welcome Guest, Not a member yet? Register   Sign In
Problem with CI + Doctrine
#2

[eluser]Burak Guzel[/eluser]
Looks like the base class file is not being loaded automatically.

You can try commenting out this line, which disables lazy loading:

Code:
Doctrine_Manager::getInstance()->setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_CONSERVATIVE);

OR, you can add this line:

Code:
spl_autoload_register(array('Doctrine', 'modelsAutoload'));

Right after the other line with the call to spl_autoload_register
That will set autoloading for models.


Messages In This Thread
Problem with CI + Doctrine - by El Forum - 06-22-2010, 08:56 PM
Problem with CI + Doctrine - by El Forum - 06-23-2010, 08:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB