PHP Doctrine: cannot find ClassName, but factory loading works..?
Posted
by ropstah
on Stack Overflow
See other posts from Stack Overflow
or by ropstah
Published on 2010-04-05T21:23:30Z
Indexed on
2010/04/10
23:53 UTC
Read the original article
Hit count: 337
I'm using PHP Doctrine and i've setup autoloading:
spl_autoload_register(array('Doctrine', 'autoload'));
spl_autoload_register(array('Doctrine', 'modelsAutoload'));
I can create a table like so:
$table = Doctrine_Core::getTable('TableName');
However if I try it like this, it doesn't work, what am I missing?:
$table = new TableNameTable(); //Yes it should be TableNameTable
© Stack Overflow or respective owner