diff --git a/UPGRADE-4.4.md b/UPGRADE-4.4.md index 93854c8073..90c620bd60 100644 --- a/UPGRADE-4.4.md +++ b/UPGRADE-4.4.md @@ -63,6 +63,14 @@ DependencyInjection ```php new Definition('%my_class%'); ``` + +DoctrineBridge +-------------- + * Deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be + injected instead. + * Deprecated passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field. + * Deprecated not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field. + * Deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry`. Filesystem ---------- diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index d41330e3fd..79c2b32508 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -115,10 +115,11 @@ DependencyInjection DoctrineBridge -------------- - * Deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be + * Removed the possibility to inject `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be injected instead * Passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field will throw an exception, pass `null` instead * Not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field will not apply any optimization + * The `RegistryInterface` has been removed. DomCrawler ---------- diff --git a/src/Symfony/Bridge/Doctrine/CHANGELOG.md b/src/Symfony/Bridge/Doctrine/CHANGELOG.md index 7123b527eb..e0b365f442 100644 --- a/src/Symfony/Bridge/Doctrine/CHANGELOG.md +++ b/src/Symfony/Bridge/Doctrine/CHANGELOG.md @@ -5,6 +5,7 @@ CHANGELOG ----- * added `DoctrineClearEntityManagerMiddleware` + * deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry` 4.3.0 diff --git a/src/Symfony/Bridge/Doctrine/RegistryInterface.php b/src/Symfony/Bridge/Doctrine/RegistryInterface.php index 6928f8afd4..17ccace128 100644 --- a/src/Symfony/Bridge/Doctrine/RegistryInterface.php +++ b/src/Symfony/Bridge/Doctrine/RegistryInterface.php @@ -17,6 +17,8 @@ use Doctrine\ORM\EntityManager; /** * References Doctrine connections and entity managers. * + * @deprecated since Symfony 4.4, use Doctrine\Common\Persistence\ManagerRegistry instead + * * @author Fabien Potencier */ interface RegistryInterface extends ManagerRegistryInterface