I must say right away, that I don't know how correct this fix is, but it works for me. So in Doctrine ORM 1.2.4 after generating models I ran in a bit of a problem. So I fixed like that:
Find file vendor\doctrine\doctrine1\lib\Doctrine\Core.php
Next on line 1155 find this code:
$class = self::$_modelsDirectory . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
if (file_exists($class)){
require $class;
return true;
}
And add this code after:
$class = self::$_modelsDirectory . DIRECTORY_SEPARATOR . 'generated' . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
if (file_exists($class)) {
require $class;
return true;
}
This is it.
