DDC-3987: [GH-1548] BasicEntityPersister::load(): Better safety check #4868

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

Originally created by @doctrinebot on GitHub (Nov 8, 2015).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of DerPapst:

Url: https://github.com/doctrine/doctrine2/pull/1548

Message:

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.

Originally created by @doctrinebot on GitHub (Nov 8, 2015). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of DerPapst: Url: https://github.com/doctrine/doctrine2/pull/1548 Message: 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 Bug label 2026-01-22 14:50:53 +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#4868