mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
oneToOne unidirectional association update fails #5027
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 @Tomsgu on GitHub (Feb 28, 2016).
Hi everyone,
I have an unidirectional oneToOne relationship between a Person and User. I am trying to execute method mergePeople.
But this code throws an exception:
I am wondering why I get this error. Is it some kind of bug(in my code or somewhere else) or doctrine doesn't handle this situation normally(should firstly flush
setUser(NULL)change and then other changes)?doctrine/orm 2.4.8doctrine/dbal 2.4.5Symfony doctrine2 bundle 1.6.2@baptistedonaux commented on GitHub (Mar 1, 2016):
Same fail. Cascade updates are also impacted. +1
@akomm commented on GitHub (Apr 21, 2017):
Same here.