mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1407: Only owning side of x-1 associations can have a FK column? #1764
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 (Oct 8, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user bhp:
I have to following tables:
My Entities:
If I set a id for TABLE1, while I do a $entity->flush() (with associated TABLE2), id in TABLE1 gets reset to null, because of this piece of code in BasicEntityPersister.php:
Seems to me like the following assumption is wrong, if you ask me. Look at my table. This works on Hibernate...
@doctrinebot commented on GitHub (Oct 15, 2011):
Comment created by @beberlei:
Will not work, because only the Inverse Side is set, but only the owning side is evaluated:
Will work, owning side isset:
This is the same behavior as in hibernate.
@doctrinebot commented on GitHub (Oct 15, 2011):
Issue was closed with resolution "Fixed"