mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #1139] [3.0] Single entity flush #9198
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?
Original Pull Request: https://github.com/doctrine/orm/pull/1139
State: closed
Merged: No
The current
flushbehavior seems to be inconsistent or not well documented.If i have understood the documentation in the correct way,
flush($entity)should flush the passed entity (and its related associations/entities), and leave untouched the remaining object graph.The current behavior seems to be: flush all new objects, flush all
$entity"updates", clear all "todo" stored into current UnitOfWork state.