Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-1511

Suggestion on the docs for batch processing


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


      I am refering to the examples on


      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?


        jamie0725 Jamie Wong created issue -
        beberlei Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 13221 ] jira-feedback [ 13993 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13993 ] jira-feedback2 [ 15857 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15857 ] jira-feedback3 [ 18113 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={expand=changesets[0:20].revisions[0:29],reviews, query=DDC-1511}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)


          • Assignee:
            beberlei Benjamin Eberlei
            jamie0725 Jamie Wong
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: