Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1511

Suggestion on the docs for batch processing

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      br0wser

      Description

      I am refering to the examples on

      http://www.doctrine-project.org/docs/orm/2.0/en/reference/batch-processing.html

      Let's say you want to process a bulk of 25 objects and have a batchsize of 20.
      With the code provided the last 5 would not be saved as far as I understand unless you do another flush after the for-loop.

      This is probably very clear to any experienced Doctrine developer but maybe it is also confusing for beginners like me (some internet sources say, that flush is executed automatically at the end of the request, but obviously it is not). Maybe this could be mentioned somewhere?

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jamie Wong
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: