我在symfony2上更新了我的供应商,在我开始收到这个错误后,我不知道为什么它会出现
uan@juan-VirtualBox:/var/www/msw-web$php-app/console原则:迁移:差异PHP警告:Xdebug必须作为Zend扩展加载到第0行的未知中
PHP致命错误:调用未定义的方法Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression(),位于第85行/var/www/msw-web/vender/Doctrine-migration/lib/Doctrine/DBAL/migrations/Tools/Console/Command/DiffCommand.PHP中PHP堆栈跟踪:PHP 1。{main}()/var/www/msw-web/app/console:0PHP 2。Symfony\Component\Console\Application->run()/var/www/msw-web/app/Console:22PHP 3。Symfony\Bundle\FrameworkBundle\Console\Application->doRun()/var/www/msw-web/vender/Symfony/src/Symfony/Component/Console/Application.php:118PHP 4。Symfony\Component\Console\Application->doRun()/var/www/msw-web/vvendor/Symfony/src/Symfony/Bundle/FrameworkBundle/Coonsole/Application.php:75PHP 5。Symfony\Component\Console\Command->run()/var/www/msw-web/vender/Symfony/src/Symfony/Component/Console/Application.php:194PHP 6。Symfony\Bundle\DoctrineMigrationsBundle\Command\MigrationsDiffDoctrineCommand->execute()/var/www/msw-web/vvendor/Symfony/src/Symfony/Component/Console/Command/Command.php:224PHP 7。Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand->execute()/var/www/msw-web/vvendor/bundles/Symfony/bundles/DoctrineMigrationsBundle/Command/MigrationsDiffDoctrineCommand.php:46
致命错误:调用未定义的方法Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression
调用堆栈:0.0003 328524 1。{main}()/var/www/msw-web/app/console:00.0210 1930264 2。Symfony\Component\Console\Application->run()/var/www/msw-web/app/Console:220.0289 2110852 3。Symfony\Bundle\FrameworkBundle\Console\Application->doRun()/var/www/msw-web/vender/Symfony/src/Symfony/Component/Console/Application.php:1180.1349 7697284 4。Symfony\Component\Console\Application->doRun()/var/www/msw-web/vvendor/Symfony/src/Symfony/Bundle/FrameworkBundle/Coonsole/Application.php:750.1422 7697284 5。Symfony\Component\Console\Command->run()/var/www/msw-web/vender/Symfony/src/Symfony/Component/Console/Application.php:1940.1432 7697828 6。Symfony\Bundle\DoctrineMigrationsBundle\Command\MigrationsDiffDoctrineCommand->execute()/var/www/msw-web/vvendor/Symfony/src/Symfony/Component/Console/Command/Command.php:2240.1767 11022484 7。Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand->execute()/var/www/msw-web/vvendor/bundles/Symfony/bundles/DoctrineMigrationsBundle/Command/MigrationsDiffDoctrineCommand.php:46
juan@juan-VirtualBox:/var/www/msw-web$
我不确定这个问题是否来自教义。
我试着更新条令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
我能做什么?
谨致问候。
在deps文件中设置提交版本值
[doctrine-migrations]
git=http://github.com/doctrine/migrations.git
version=b86b4cc0a39714f0aa53b908d495beacfa0e4011
您应该检查您有Doctrine/DBAL的哪个版本。可能您有DoctrineMigrations和DoctrineDBAL的不兼容版本。
方法"getFilterSchemaAssetsExpression"已添加到2.2 IIRC中。请参阅提交