[PR #6867] Ensure ObjectManagerAware and EntityManagerAware are correctly handled by UoW load/refresh #10178

Open
opened 2026-01-22 16:06:42 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6867

State: closed
Merged: Yes


Couple things here:

  • tests fail because Doctrine\Common\Persistence\ClassMetadata is no longer an ancestor of the ORM metadata
  • since lazy-loading is now performed on a per-property fashion, the assertion that the om and em fields are null before lazy-loading seems wrong. getReference should inject the EntityManager instance

@guilhermeblanco feedback needed on the above, then I can continue on this :-)

**Original Pull Request:** https://github.com/doctrine/orm/pull/6867 **State:** closed **Merged:** Yes --- Couple things here: * [x] tests fail because `Doctrine\Common\Persistence\ClassMetadata` is no longer an ancestor of the ORM metadata * [x] since lazy-loading is now performed on a per-property fashion, the assertion that the `om` and `em` fields are `null` before lazy-loading seems wrong. `getReference` should inject the `EntityManager` instance @guilhermeblanco feedback needed on the above, then I can continue on this :-)
admin added the pull-request label 2026-01-22 16:06:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10178