DDC-38: associations that are null should not create a prox object #46

Open
opened 2026-01-22 12:25:13 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 10, 2009).

Jira issue originally created by user itoijala:

Associations that are nullable do not work as expected. When the association is null, i.e. the id in the database is null, the association is not null when loaded from the database. Doctrine creates a proxy object for the association that, when loaded, has no values for any fields. Doctrine should check during object hydration if the association is null. If true then no proxy object should be created. Please see DDC-34 for my schema.

Originally created by @doctrinebot on GitHub (Oct 10, 2009). Jira issue originally created by user itoijala: Associations that are nullable do not work as expected. When the association is null, i.e. the id in the database is null, the association is not null when loaded from the database. Doctrine creates a proxy object for the association that, when loaded, has no values for any fields. Doctrine should check during object hydration if the association is null. If true then no proxy object should be created. Please see [DDC-34](http://www.doctrine-project.org/jira/browse/DDC-34) for my schema.
admin added the Bug label 2026-01-22 12:25:14 +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#46