mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
There is no verification of the availability of the property in the bi-directional association #5811
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 @Sharoff45 on GitHub (Dec 18, 2017).
Originally assigned to: @Ocramius on GitHub.
I made a error in OneToMany association and received a notice when persist entity:
Undefined index: ItemEntities
File: /opt/project/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
Line: 1768
OwnerEntity.php
ItemEntity.php
I got this error only with persist.
Package: doctrine/orm v2.5.12
Dist url:
984535cadc@Ocramius commented on GitHub (Dec 18, 2017):
As the title says:
It is up to you to make sure the property is set for
OwnerEntity#$itemEntities: the ORM merely attempts to store what you provided to it.Also, note that the
OneToManyside is never the owning side of the association.