doctrine / data-fixtures

Doctrine2 ORM Data Fixtures Extensions
http://www.doctrine-project.org
MIT License
2.77k stars 224 forks source link

Loading fixtures fails with DBAL 3 #365

Closed williarin closed 2 years ago

williarin commented 2 years ago

Using DBAL 3, the command doctrine:fixtures:load fails with this error:

In ORMPurger.php line 133:

  [Symfony\Component\ErrorHandler\Error\UndefinedMethodError]
  Attempted to call an undefined method named "getFilterSchemaAssetsExpression" of class "Doctrine\DBAL\Configuration".

https://github.com/doctrine/data-fixtures/blob/51d3d4880d28951fff42a635a2389f8c63baddc5/lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php#L133

Configuration::getFilterSchemaAssetsExpression() has been removed in DBAL 3.