[PR #9028] Don't presume one-to-one lookup returned an entity #11322

Closed
opened 2026-01-22 16:10:23 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


If $this->em->find() returns null, don't treat it like an object. Instead, just set the field to null and back out of the switch statement.

Includes a was-failing-but-now-passing test case.

Fixes #9027

**Original Pull Request:** https://github.com/doctrine/orm/pull/9028 **State:** closed **Merged:** Yes --- If `$this->em->find()` returns null, don't treat it like an object. Instead, just set the field to null and back out of the switch statement. Includes a was-failing-but-now-passing test case. Fixes #9027
admin added the pull-request label 2026-01-22 16:10:23 +01:00
admin closed this issue 2026-01-22 16:10:24 +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#11322