DDC-3879: Child Entity fields are empty but is getting Parent Entity ID instead NULL into them #4748

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

Originally created by @doctrinebot on GitHub (Aug 25, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user navid.anwar:

I have upgraded the project from Symfony 2.5.4 -> 2.7.3 and it upgraded the doctrine version as well that is defined above.

The issue is I am fetching a child entity i.e. WarrantyOtherInfo by using its Parent entity WarrantyInfo i.e.

InsuranceNo = $WarrantyInfo->getWarrantyOtherInfo()->getInsuranceNo();
companyName = $WarrantyInfo->getWarrantyOtherInfo()->getCompanyName();

The data in the fields is empty in the database but when accessing the fields using doctrine ORM then it is giving me ParentForeign key value i.e. 1576 in both NULL fields.

Hope I provided the enough information about the issue and hope to resolve it in next upgrade.

Originally created by @doctrinebot on GitHub (Aug 25, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user navid.anwar: I have upgraded the project from Symfony 2.5.4 -> 2.7.3 and it upgraded the doctrine version as well that is defined above. The issue is I am fetching a child entity i.e. WarrantyOtherInfo by using its Parent entity WarrantyInfo i.e. InsuranceNo = $WarrantyInfo->getWarrantyOtherInfo()->getInsuranceNo(); companyName = $WarrantyInfo->getWarrantyOtherInfo()->getCompanyName(); The data in the fields is empty in the database but when accessing the fields using doctrine ORM then it is giving me ParentForeign key value i.e. 1576 in both NULL fields. Hope I provided the enough information about the issue and hope to resolve it in next upgrade.
admin added the Bug label 2026-01-22 14:48:43 +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#4748