[PR #10818] Throw when loading a proxy without identifiers #12640

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

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

State: closed
Merged: No


Related to https://github.com/symfony/symfony/discussions/50874

Loading a proxy without identifiers currently leads to its hydration using its table’s first row; it is better to throw in that case.
Not sure if it should be done in EntityPersister:loadById though 🤔

**Original Pull Request:** https://github.com/doctrine/orm/pull/10818 **State:** closed **Merged:** No --- Related to https://github.com/symfony/symfony/discussions/50874 Loading a proxy without identifiers currently leads to its hydration using its table’s first row; it is better to throw in that case. Not sure if it should be done in `EntityPersister:loadById` though :thinking:
admin added the pull-request label 2026-01-22 16:14: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#12640