【发布时间】:2013-02-06 15:57:39
【问题描述】:
我正在关注本教程:http://tutorial.symblog.co.uk/docs/extending-the-model-blog-comments.html#doctrine-2-migrations
1) 安装 Doctrine 迁移包
1.1) - 添加
"doctrine/migrations": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master"
到 composer.json
1.2) 运行
php composer.phar update
2) 添加
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
在 AppKernel.php 中
3) 运行
php app/console doctrine:migrations:diff
这应该运行命令并找到当前实体和数据库之间的差异,是吗? 但我得到了一个错误:
Fatal error: Class 'Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle' not found in D:\xampp\htdocs\symblog.dev\app\AppKernel.php on line 23
这正是 (2.) 的行
你能帮帮我吗?欢迎任何建议!
【问题讨论】:
-
您在运行
php composer.phar update时遇到任何问题吗? -
作曲家没问题,捆绑安装正常,但是当我将它们添加到 AppKernel.php 时,地狱就崩溃了;P
标签: symfony bundle doctrine-migrations