diff --git a/docs/en/reference/batch-processing.rst b/docs/en/reference/batch-processing.rst index 26f16ffd3..5d3cf1887 100644 --- a/docs/en/reference/batch-processing.rst +++ b/docs/en/reference/batch-processing.rst @@ -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 ------------