Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-1511: Suggestion on the docs for batch processing #2142

Closed
doctrinebot opened this issue Nov 25, 2011 · 1 comment
Closed

DDC-1511: Suggestion on the docs for batch processing #2142

doctrinebot opened this issue Nov 25, 2011 · 1 comment

Comments

@doctrinebot
Copy link

Jira issue originally created by user jamie0725:

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?

@malukenho
Copy link

@Ocramius @lcobucci more documentation issue that can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants