我在 symfony2 上更新了我的供应商,在我开始收到此错误后,我不知道为什么会出现
uan@juan-VirtualBox:/var/www/msw-web$ php app/console dictionary:migrations:diff PHP 警告:Xdebug 必须在第 0 行的 Unknown 中作为 Zend 扩展加载
PHP 致命错误:调用 /var/www/msw-web/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand 中未定义的方法 Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression()。 php on line 85 PHP Stack trace: PHP 1. {main}() /var/www/msw-web/app/console:0 PHP 2. Symfony\Component\Console\Application->run() /var/www/ msw-web/app/console:22 PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/msw-web/vendor/symfony/src/Symfony/Component/Console/Application.php :118 PHP 4. Symfony\Component\Console\Application->doRun() /var/www/msw-web/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75 PHP 5. Symfony\组件\控制台\命令\命令->运行()/var/www/msw-web/vendor/symfony/src/Symfony/Component/Console/Application.php:194 PHP 6。Symfony\Bundle\DoctrineMigrationsBundle\Command\MigrationsDiffDoctrineCommand->execute() /var/www/msw-web/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:224 PHP 7. Doctrine\DBAL\Migrations \Tools\Console\Command\DiffCommand->execute() /var/www/msw-web/vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle/Command/MigrationsDiffDoctrineCommand.php:46
致命错误:调用 /var/www/msw-web/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php 中未定义的方法 Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression()在第 85 行
调用堆栈:0.0003 328524 1. {main}() /var/www/msw-web/app/console:0 0.0210 1930264 2. Symfony\Component\Console\Application->run() /var/www/msw-web /app/console:22 0.0289 2110852 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/msw-web/vendor/symfony/src/Symfony/Component/Console/Application.php:118 0.1349 7697284 4. Symfony\Component\Console\Application->doRun() /var/www/msw-web/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75 0.1422 7697284 5. Symfony\ Component\Console\Command\Command->run() /var/www/msw-web/vendor/symfony/src/Symfony/Component/Console/Application.php:194 0.1432 7697828 6. Symfony\Bundle\DoctrineMigrationsBundle\Command\ MigrationsDiffDoctrineCommand->execute() /var/www/msw-web/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:224 0.1767 11022484 7. Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand->执行()/var/www/msw-web/vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle/Command/MigrationsDiffDoctrineCommand.php:46
juan@juan-VirtualBox:/var/www/msw-web$
我不确定问题是否来自 Doctrine。
我试图更新教义 dbal,我在 mi 文件 deps 上使用过
doctrine-common
git=http://github.com/doctrine/common.git
version=2.2.1
doctrine-dbal
git=http://github.com/doctrine/dbal.git
version=2.2.1
doctrine
git=http://github.com/doctrine/doctrine2.git
version=2.2.1
但我得到了同样的错误,因为当我重新安装供应商时,它下载了 2.1.X 版本
我能做些什么?
问候。