mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
orphanRemoval doesn't work on OneToOne bidirectional association #5456
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 @yurybykov on GitHub (Mar 13, 2017).
Originally assigned to: @Ocramius on GitHub.
@szymach commented on GitHub (Apr 17, 2017):
Hello,
Can you share some code? Maybe you simply have wrong entity mapping.
@Ocramius commented on GitHub (Apr 18, 2017):
Closing as
incompletedue to missing tests.@yurybykov commented on GitHub (Dec 24, 2017):
UPD.
It was my mistake of understanding how OneToOne relation work. I tried to remove relation from inverse side. For everybody with same please read the doc at http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/unitofwork-associations.html