我想在我的Symfony項目中使用Doctrine 2 Migrations。Symfony 2.0:調用未定義的方法Doctrine DBAL Configuration :: getFilterSchemaAssetsExpression()
爲此,我先放
[doctrine-migrations]
git=http://github.com/doctrine/migrations.git
[DoctrineMigrationsBundle]
git=http://github.com/doctrine/DoctrineMigrationsBundle.git
target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle
version=origin/2.0
中日DEPS文件。
然後我更新供應商提供:
php bin/vendors install
,並嘗試使用
php app/console doctrine:migrations:diff
但我越來越有一個致命的錯誤:
PHP Fatal error: Call to undefined method Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression() in /home/milos/workspace/Symfony/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php on line 85
Fatal error: Call to undefined method Doctrine\DBAL\Configuration::getFilterSchemaAssetsExpression() in /home/milos/workspace/Symfony/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php on line 85
你對deps文件有哪些版本的教義 - 普通,doctrine-dbal和doctrine? –
doctrine-common:version = 2.1.4; doctrine-dbal:version = 2.1.7;學說:版本= 2.1.7;謝謝你的答案。 –