Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8560323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:15:02+00:00 2026-06-11T16:15:02+00:00

I am trying to use Doctrine 2 Migrations in my Symfony project. for that,

  • 0

I am trying to use Doctrine 2 Migrations in my Symfony project.

for that, I first put

[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

in th deps file.

Then I am updating vendors with:

php bin/vendors install

And try to use

php app/console doctrine:migrations:diff

But I am getting there a fatal error:

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:15:03+00:00Added an answer on June 11, 2026 at 4:15 pm

    Well, the problem is that doctrine migration is calling a function which only exists in Doctrine 2.2, not Doctrine 2.1. This was just introduced a few days ago in this commit

    The problem is that doctrine-migrations does not have any branches or tags, so you cannot ask for an older version which works for you.

    It is difficult to upgrade to Doctrine 2.2 if you are using symfony-2.0. So, what I would do is remove the lines introduced in that commit manually for now and then open a new issue on the doctrine-migrations github explaining the situiation and asking for a fix (probably the best idea would be to add a tag for the version which is compatible with Doctrine 2.1)

    EDIT

    This has been fixed now thanks to the issue opened by @Milos! You should not find this problem anymore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Doctrine Common to create my own annotation. http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/annotations.html does
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I am trying to use Doctrine 2 (for Symfony 2) to connect to MSSQLServer
So, I'm trying to use Doctrine to retrieve some data. I have some basic
I am trying to use do the most simple update query but Doctrine issues
I'm trying to perform a ManyToMany self referencing association in my Symfony 2.1 project
I'm trying to use Doctrine with a poorly designed PostgreSQL database. Some tables have
I am new to symfony 2. I am trying to use custom repository in
when i trying to create a module using the command php symfony doctrine:generate-module --with-show
im trying to use the doctrine pager but its errored: Fatal error: Class 'Doctrine_Pager'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.