[DDC-2291] [GH-576] Update docs/en/reference/batch-processing.rst Created: 08/Feb/13  Updated: 11/Feb/13  Resolved: 11/Feb/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


 Description   

This issue is created automatically through a Github pull request on behalf of acasademont:

Url: https://github.com/doctrine/doctrine2/pull/576

Message:

If you have only $batchSize - 1 rows (amongst other cases), the entities are never flushed, you need a final flush outside the loop.

In the bulk insert you should also need a final flush if the number of entities inserted is not a multiple of the $batchSize.



 Comments   
Comment by Benjamin Eberlei [ 11/Feb/13 ]

A related Github Pull-Request [GH-576] was closed
https://github.com/doctrine/doctrine2/pull/576

Generated at Fri Oct 24 21:21:12 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.