0

我正在使用 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
4

1 回答 1

0

原来是配置错误。Loadingtype 不应设置为 PROGRESSIVE。

于 2010-04-10T23:47:56.360 回答