Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is some low-hanging fruit working as a very first pass for #2708. Best viewed by individual commits.
Three things are tackled:
Doctrine\ORM\EntityRepository::$_em
property was made private, the getter method is used insteadDoctrine\ORM\Internal\Hydration\AbstractHydrator::$_em
property was renamed to$em
, and it has no getter method; an internal trait was introduced and implemented in all ORM hydrators to support retrieving the entity manager from the parent class in a cross-version compatible mannerAttributeDriver
instead of the deprecatedAnnotationDriver
when running on PHP 8 when configuring an entity manager