[PR #1548] BasicEntityPersister::load(): Better safety check #9610

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

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

State: closed
Merged: No


In certain setups $entity may contan an instance of a collection class. The new check additionally makes sure the element with the index 0 exists, because the old check would be evaluated to true for empty collections resulting in a notice and/or exception.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1548 **State:** closed **Merged:** No --- In certain setups $entity may contan an instance of a collection class. The new check additionally makes sure the element with the index 0 exists, because the old check would be evaluated to true for empty collections resulting in a notice and/or exception.
admin added the pull-request label 2026-01-22 16:04:50 +01:00
admin closed this issue 2026-01-22 16:04:51 +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#9610