DDC-3902: [GH-1508] Ignore non-objects #4774

Closed
opened 2026-01-22 14:49:06 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 14, 2015).

Jira issue originally created by user @doctrinebot:

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

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

Message:

PR #1419 introduced a BC break. Apparently some code rely on the ability to invoke PersistentCollection::set() with a null value.

This PR adds a simple check that makes add() and set() silently ignore non-object values.

Originally created by @doctrinebot on GitHub (Sep 14, 2015). Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of c960657: Url: https://github.com/doctrine/doctrine2/pull/1508 Message: PR #1419 introduced a BC break. Apparently some code rely on the ability to invoke PersistentCollection::set() with a null value. This PR adds a simple check that makes add() and set() silently ignore non-object values.
admin added the Bug label 2026-01-22 14:49:06 +01:00
admin closed this issue 2026-01-22 14:49:07 +01:00
Author
Owner

@doctrinebot commented on GitHub (Sep 14, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1508] was labeled:
https://github.com/doctrine/doctrine2/pull/1508

@doctrinebot commented on GitHub (Sep 14, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1508] was labeled: https://github.com/doctrine/doctrine2/pull/1508
Author
Owner

@doctrinebot commented on GitHub (Nov 6, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1508] was closed:
https://github.com/doctrine/doctrine2/pull/1508

@doctrinebot commented on GitHub (Nov 6, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1508] was closed: https://github.com/doctrine/doctrine2/pull/1508
Author
Owner

@Majkl578 commented on GitHub (Sep 11, 2017):

Related PR #1508 closed and handled in #1545.

@Majkl578 commented on GitHub (Sep 11, 2017): Related PR #1508 closed and handled in #1545.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4774