我在symfony2上更新了我的供应商,在我开始出现这个错误之后,我不知道它为什么会出现
uan @ juan-VirtualBox:/ var / www / msw-web $ php app / console doctrine: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 the 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 \ Component \ Console \ Command \ Command-> run()/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-> execute()/ var / www / msw-web / vendor / bundles / Symfony / Bundle / DoctrineMigrationsBundle / Command / Migrat ionsDiffDoctrineCommand.php:46
胡安@胡VirtualBox的:在/ var / WWW / MSW-网$
我不确定问题是否来自Doctrine。
我试着更新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版本
我能做什么?
问候。
I updated my vendors on symfony2, and after I began to got this error, I have no idea why it appears
uan@juan-VirtualBox:/var/www/msw-web$ php app/console doctrine:migrations:diff PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Fatal error: Call to undefined method Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression() in /var/www/msw-web/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.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\Component\Console\Command\Command->run() /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
Fatal error: Call to undefined method Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression() in /var/www/msw-web/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php on line 85
Call Stack: 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->execute() /var/www/msw-web/vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle/Command/MigrationsDiffDoctrineCommand.php:46
juan@juan-VirtualBox:/var/www/msw-web$
I am not sure if the problem came from Doctrine.
I tryed to update doctrine dbal, I used on mi file 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.1But I get the same error because when I reinstall vendor it download the version 2.1.X
What can I do?
Regards.
最满意答案
在deps文件中设置提交版本值
[doctrine-migrations] git=http://github.com/doctrine/migrations.git version=b86b4cc0a39714f0aa53b908d495beacfa0e4011set commit version value in deps file
[doctrine-migrations] git=http://github.com/doctrine/migrations.git version=b86b4cc0a39714f0aa53b908d495beacfa0e4011调用未定义的方法Doctrine \ DBAL \ Configuration :: getFilterSchemaAssetsExpression()(Call to undefined method Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression())我在symfony2上更新了我的供应商,在我开始出现这个错误之后,我不知道它为什么会出现
uan @ juan-VirtualBox:/ var / www / msw-web $ php app / console doctrine: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 the 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 \ Component \ Console \ Command \ Command-> run()/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-> execute()/ var / www / msw-web / vendor / bundles / Symfony / Bundle / DoctrineMigrationsBundle / Command / Migrat ionsDiffDoctrineCommand.php:46
胡安@胡VirtualBox的:在/ var / WWW / MSW-网$
我不确定问题是否来自Doctrine。
我试着更新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版本
我能做什么?
问候。
I updated my vendors on symfony2, and after I began to got this error, I have no idea why it appears
uan@juan-VirtualBox:/var/www/msw-web$ php app/console doctrine:migrations:diff PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Fatal error: Call to undefined method Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression() in /var/www/msw-web/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.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\Component\Console\Command\Command->run() /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
Fatal error: Call to undefined method Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression() in /var/www/msw-web/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php on line 85
Call Stack: 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->execute() /var/www/msw-web/vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle/Command/MigrationsDiffDoctrineCommand.php:46
juan@juan-VirtualBox:/var/www/msw-web$
I am not sure if the problem came from Doctrine.
I tryed to update doctrine dbal, I used on mi file 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.1But I get the same error because when I reinstall vendor it download the version 2.1.X
What can I do?
Regards.
最满意答案
在deps文件中设置提交版本值
[doctrine-migrations] git=http://github.com/doctrine/migrations.git version=b86b4cc0a39714f0aa53b908d495beacfa0e4011set commit version value in deps file
[doctrine-migrations] git=http://github.com/doctrine/migrations.git version=b86b4cc0a39714f0aa53b908d495beacfa0e4011
发布评论