我在项目中使用Symfony3以及Doctrine ORM。 现在我想和Hautelook/AliceBundle有一些不错的装置。Symfony3 Doctrine Hautelook /爱丽丝无法加载灯具
所以我安装了捆绑包,注册到AppKernel以及在配置中输入一个条目。
我说像这样的的DataLoader:
use Hautelook\AliceBundle\Doctrine\DataFixtures\AbstractLoader;
class DataLoader extends AbstractLoader
{
/**
* {@inheritdoc}
*/
public function getFixtures()
{
return [
__DIR__.'/../ORM/user.yml',
];
}
}
现在,如果我尝试像运行命令:
sf hautelook_alice:doctrine:fixtures:load
我得到的ErrorMessage:
[Symfony\Component\Debug\Exception\UndefinedMethodException]
Attempted to call an undefined method named "addClass" of class "Doctrine\ORM\Internal\CommitOrderCalculator".
我的作曲家。 json包含:
"doctrine/orm" : "^2.5.4",
"doctrine/doctrine-bundle" : "^1.6",
"doctrine/data-fixtures" : "^1.1",
"hautelook/alice-bundle" : "^1.2",
"doctrine/doctrine-fixtures-bundle" : "^2.3",
我真的不知道这里的问题是什么,我希望任何人都可以帮助我找出或知道解决方案。 如果缺少任何信息,我会在后面添加。提前
你在哪里使用“CommitOrderCalculator”?你可以显示该代码吗?这就是错误所说的;你正在调用“addClass”。 –