diff --git a/Loader/SymfonyFixturesLoader.php b/Loader/SymfonyFixturesLoader.php index 9c5e802e..4c2e086b 100644 --- a/Loader/SymfonyFixturesLoader.php +++ b/Loader/SymfonyFixturesLoader.php @@ -67,10 +67,6 @@ public function addFixture(FixtureInterface $fixture): void $this->addGroupsFixtureMapping($class, $fixture::getGroups()); } - if ($fixture instanceof ContainerAwareInterface) { - $fixture->setContainer($this->container); - } - parent::addFixture($fixture); } diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index 7692f3be..820e5df4 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -10,4 +10,6 @@ UPGRADE FROM 4.x to 5.0 `Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand` have been removed without replacement. * The `Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand` class is now - `@internal`, you should not extend from this class. \ No newline at end of file + `@internal`, you should not extend from this class. +* Remove support for `services` option in `doctrine:mongodb:fixtures:load` command. +* Remove `ContainerAwareInterface` on fixture classes.