mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
One to Many keep deleting my parent entity even when I'm only editing it #5557
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 @AntonSmatanik on GitHub (May 24, 2017).
Originally assigned to: @Ocramius on GitHub.
I have parent and child entity. Whenever I edit data even if I have done no changes parent entity is deleted. That's crazy behavior. Here is my code for parent:
And here for child:
I don't know what to do, I have already spend hours on this...
@lcobucci commented on GitHub (May 24, 2017):
@AntonSmatanik that looks weird but is a bit hard for us to do something with just that info, could you please try to reproduce it using a functional test and sends a PR? You can find examples in
2a239be45e/tests/Doctrine/Tests/ORM/Functional/Ticket@AntonSmatanik commented on GitHub (May 29, 2017):
Ok, I think there is a problem in easy admin bundle.