This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bridge/Doctrine
Fabien Potencier eb112a5288 feature #27829 [DoctrineBridge] Inject the entity manager instead of the class metadata factory in DoctrineExtractor (dunglas)
This PR was squashed before being merged into the 4.2-dev branch (closes #27829).

Discussion
----------

[DoctrineBridge] Inject the entity manager instead of the class metadata factory in DoctrineExtractor

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  |no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | yes <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | n/a

As explained by @stof in https://github.com/symfony/symfony/pull/27735#discussion_r199797412, injecting the `ClassMetadataFactory` directly can lead to issues when resetting the EntityManager.

This PR deprecates this usage and encourages to inject the entity manager directly.

Commits
-------

3aab4a1270 [DoctrineBridge] Inject the entity manager instead of the class metadata factory in DoctrineExtractor
2018-07-13 22:22:21 +02:00
..
CacheWarmer [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
DataCollector feature #25346 [DoctrineBridge] DoctrineDataCollector comments the non runnable part of the query (Simperfit) 2017-12-07 08:54:57 -08:00
DataFixtures [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
DependencyInjection Merge branch '4.1' 2018-07-03 20:14:13 +02:00
Form renamed Contract to Contracts 2018-07-13 19:06:58 +02:00
Logger Merge branch '2.7' into 2.8 2017-10-24 15:48:52 +02:00
Messenger [Messenger] Middleware factories support in config 2018-05-14 20:17:01 +01:00
PropertyInfo [DoctrineBridge] Inject the entity manager instead of the class metadata factory in DoctrineExtractor 2018-07-13 22:22:15 +02:00
Security fixed some deprecation messages 2017-12-31 06:12:25 +01:00
Test Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
Tests [DoctrineBridge] Inject the entity manager instead of the class metadata factory in DoctrineExtractor 2018-07-13 22:22:15 +02:00
Validator Merge branch '2.8' into 3.4 2018-04-25 17:24:55 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [DoctrineBridge] Inject the entity manager instead of the class metadata factory in DoctrineExtractor 2018-07-13 22:22:15 +02:00
composer.json Added symfony/contracts: a set of abstractions extracted out of the components 2018-07-11 10:17:42 +02:00
ContainerAwareEventManager.php Merge branch '2.8' into 3.3 2017-10-24 16:05:06 +02:00
LICENSE fixed years in copyright 2018-01-03 08:23:28 +01:00
ManagerRegistry.php fixed some deprecation messages 2017-12-31 07:59:27 +01:00
phpunit.xml.dist fail when detecting risky tests 2017-04-12 09:39:27 +02:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
RegistryInterface.php Fix phpdoc and coding standards 2014-12-29 23:41:34 +01:00

Doctrine Bridge

Provides integration for Doctrine with various Symfony components.

Resources