1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

Fix bulk insert code example

Previous code example did not flush all entities when entity count was not a multiple of batch count.
This commit is contained in:
Justin 2014-07-30 15:00:35 -07:00
parent 514dd4e852
commit 2d23c95c3f

View file

@ -42,6 +42,8 @@ internally but also mean more work during ``flush``.
$em->clear(); // Detaches all objects from Doctrine!
}
}
$em->flush(); //Persist objects that did not make up an entire batch
$em->clear();
Bulk Updates
------------