In order to improve performance I tried to compile doctrine as per the manual Doctrine improvemnts tips
first run :
Doctrine::compile('Doctrine.compiled.php', array('mysql'));
and later (after file created)
require_once (LIBS.'Doctrine.compiled.php');
$manager = Doctrine_Manager::getInstance();
$conString = $_CONFIG['user'].':'.$_CONFIG['pass'].'@'.$_CONFIG['host'].'/'.$_CONFIG['dbname'];
$db = Doctrine_Manager::connection('mysql://'.$conString);
unset($conString);
$db->setCharset('utf8');
$db->setAttribute(Doctrine_Core::ATTR_AUTO_ACCESSOR_OVERRIDE, true);
$db->setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_CONSERVATIVE); // load only requeseted models and not all of them
$db->setAttribute(Doctrine_Core::ATTR_AUTOLOAD_TABLE_CLASSES, true);
The Error Outputed is :
Fatal error: Call to a member function setAttribute() on a non-object in \libs\Doctrine.compiled.php on line 1
When using the none Compiled version its working great
any ideas what might be the problem ?
thanks.