mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3879: Child Entity fields are empty but is getting Parent Entity ID instead NULL into them #4748
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.