运行php应用程序/控制台原则时出错:schema:update--force in Symfony2

运行php应用程序/控制台原则时出错:schema:update--force in Symfony2,php,symfony,doctrine-orm,doctrine,Php,Symfony,Doctrine Orm,Doctrine,当我试图运行命令php应用程序/控制台条令:schema:update--force 我遇到了一个错误: PHP Catchable fatal error: Argument 1 passed to Doctrine\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper::setApplicationEntityMan ager() must be an instance of Symfony\Bundle\FrameworkBu

当我试图运行命令
php应用程序/控制台条令:schema:update--force

我遇到了一个错误:

PHP Catchable fatal error:  Argument 1 passed to
Doctrine\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper::setApplicationEntityMan
ager() must be an instance of Symfony\Bundle\FrameworkBundle\Console\Application, instance 
of Application given, called in /var/www/xxx/vendor/doctrine/doctrine-
bundle/Doctrine/Bundle/DoctrineBundle/Command/Proxy/UpdateSchemaDoctrineCommand.php on line 
69 and defined in /var/www/xxx/vendor/doctrine/doctrine-
bundle/Doctrine/Bundle/DoctrineBundle/Command/Proxy/DoctrineCommandHelper.php on line 34
我找到的代码:

abstract class DoctrineCommandHelper
{
    /**
     * Convenience method to push the helper sets of a given entity manager into the application.
     *
     * @param Application $application
     * @param string      $emName
     */
    static public function setApplicationEntityManager(Application $application, $emName)
    {
        /** @var $em \Doctrine\ORM\EntityManager */
        $em = $application->getKernel()->getContainer()->get('doctrine')->getManager($emName);
        $helperSet = $application->getHelperSet();
        $helperSet->set(new ConnectionHelper($em->getConnection()), 'db');
        $helperSet->set(new EntityManagerHelper($em), 'em');
    }
第69行更新chemadoctrinecommand.php

    protected function execute(InputInterface $input, OutputInterface $output)
{
    DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

    parent::execute($input, $output);
}
我解决不了,有人知道答案吗

作曲家提供的信息:

"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
“symfony/symfony”:“2.3.*”,

“条令/orm”:“>=2.2.3,老实说,我不知道,我怎样才能测试它?可能问题在于错误版本的条令?请删除缓存和供应商目录,然后使用composer重新安装。您的json看起来是正确的。您是否正在尝试从较早的Symfony版本进行更新?我删除了缓存和供应商,然后用composer重新安装了供应商,但仍然存在相同的错误。我知道如何解决这个问题,我将尝试安装'empty'symfony2实例,然后用一些简单的实体测试这个命令。是否有将实体复制到新项目并生成数据库模式的选项?对不起,关于我的英语,如果你听不懂,请告诉我。