最近开始玩 S2,很棒的东西!前段时间开始了在线Symfony2 Blog tutorial ,但是我被困在了 Doctrine Data Fixtures generation 的页面上,
这是我在控制台中执行 php app/console doctrine:fixtures:load
时收到的消息:
Fatal error: Class 'Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand' not found in C:\xampp\htdocs\blog-sf2\vendor\bundles\Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand.php on line 40
我真的被它困住了,我正在运行 Windows 7,所以不能真正使用 deps 文件从旧版本中提取依赖项(或者我能以某种方式吗??),
我已经下载了最新版本的 FixtureBundles 和 DoctrineFixtures。
非常感谢对此的任何帮助!
最佳答案
我认为你需要阅读 the installation documentation of this bundle for the 2.0 branch 您并没有真正“使用 deps”文件。 bin/vendors 脚本使用它,并使用 git。因此,要“使用 deps”,您需要做的是安装 git(顺便说一句,安装 git-bash,您将获得一个更好的终端)。
关于php - Symfony2.0.15 Doctrine-Fixtures Windows 命令行 fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10874165/