You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is normal: EntityManager#flush($entity) is deprecated, as it was initially only thought for performance optimisations, but does indeed perform any DB operations that were already scheduled.
Please don't use it, and just use EntityManager#flush() instead.
jskarpe
changed the title
$em->flush($entity) flushes all entities schedules for insert
$em->flush($entity) flushes all entities scheduled for insert
Dec 20, 2017
doctrine/orm: v2.5.12
I have an entity without any relations set that I pass to flush().
Expected result
INSERT of only this entity
Actual result
All entities scheduled for inserts are put into the database
Looking at the code, computing changesets for all insert changesets in
computeSingleEntityChangeSet
seems strange to me:UnitOfWork.php ->
function computeSingleEntityChangeSet
contains the following:With computeScheduleInsertsChangeSets:
The text was updated successfully, but these errors were encountered: