我正在使用 PHP Doctrine 并且我已经设置了自动加载:
spl_autoload_register(array('Doctrine', 'autoload'));
spl_autoload_register(array('Doctrine', 'modelsAutoload'));
我可以像这样创建一个表:
$table = Doctrine_Core::getTable('TableName');
但是,如果我这样尝试,它不起作用,我错过了什么?:
$table = new TableNameTable(); //Yes it should be TableNameTable