php - Symfony2.0.15 Doctrine-Fixtures Windows 命令行 fatal error

标签 php windows symfony doctrine-orm

最近开始玩 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/

相关文章:

php - 在哪里构建使用类型提示属性反序列化嵌套对象的方法?

php - 来自 Controller laravel 的 str_replace 数组

Windows 与 Sony Camera Remote API 的兼容性

windows - 在批处理脚本中生成带有时间戳的唯一文件名

php - 如何避免 "Entities passed to the choice field must be managed. Maybe persist them in the entity manager?"

ruby - Capistrano 3 权限未在缓存和版本上正确设置

php - 如何从 url 获取信息并在 php 函数中使用它?

PHP/MySQL 打印重复标签

javascript - 持续更改 session 的 CSS

c# - .NET 设计 View 不运行 Windows 窗体 OnLoad