mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3755: Flushing a single entity does not cascade flushes #4604
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 (Jun 3, 2015).
Originally assigned to: @Majkl578 on GitHub.
Jira issue originally created by user harmar:
I have a bidirectional onetoone entities set up like this
class user
class Address
Now say I saved a new user
I get the expected result saved to the database.
Now say I want to update the city
The updated address information does not save even though cascade persist is enabled. I need to do a full flush ($em->flush()) for it to save properly
I would think since it does cascade the insert, that it should also cascade the update?
So Expected result:
Address information is saved to database
Actual Result:
Address information is not saved to the database
@Majkl578 commented on GitHub (Dec 19, 2017):
Single entity is going to be removed in Doctrine 3.0.