Avoid unnecessary flush after processing first row
Avoid unnecessary flush after processing first row

The code as is needlessly flushes after just one row is updated or
removed. It makes more sense to update after ``$batchSize`` elements are
updated or removed, just as it is in the insert case.

bigfoot90/doctrine2,doctrine/doctrine2,doctrine/doctrine2,bigfoot90/doctrine2