mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-406: A detached entity can not be removed, on @OneToOne cascade={"remove"} #503
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 (Mar 11, 2010).
Jira issue originally created by user else:
Dear developers,
I have class defined like this:
when i run this:
I get "A detached entity can not be removed".
I don't understand it very well. I need to remove associated entity but it's not done and exception occurs.
I tried it with (like OneToMany)
and
worked without problem like this.
orphanRemoval set it's not working so.
Thank for solve and perfect ORM!!! ;-)
Andy