doctrine / data-fixtures

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

doctrine/doctrine-bundle 1.9.0 breaks FixtureInterface #293

Closed InputOutput closed 6 years ago

InputOutput commented 6 years ago

The FixtureInterface uses the ObjectManager for typehinting in load(). See: https://github.com/doctrine/data-fixtures/blob/master/lib/Doctrine/Common/DataFixtures/FixtureInterface.php

The ObjectManager has been deprecated in favour of the EntityManagerInterface in doctrine-bundle 1.9.0

mikeSimonson commented 6 years ago

Already fixed in 1.9.1 where that commit has been reverted.

InputOutput commented 6 years ago

Ok thanks, are ObjectManager and ManagerRegistry still deprecated and planned to be removed in later versions or not?

mikeSimonson commented 6 years ago

The concrete class will be removed from the aliases and replaced by their corresponding interface. For reference https://github.com/doctrine/DoctrineBundle/issues/803