[DDC-2516] Undefined offset in ObjectHydrator while working with iterableResult Created: 19/Jun/13 Updated: 01/Jul/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Johanny Clerc-Renaud||Assignee:||Benjamin Eberlei|
Following this documentation page http://doctrine-orm.readthedocs.org/en/2.0.x/reference/batch-processing.html#iterating-large-results-for-data-processing I tried to create a batch process on 75k entities. But an error came in the ObjectHydrator on line 511 there's an Undefined offset. Now, i just use the SimpleObjectHydrator and it solve the problem. but i'm wondering if it's a real bug or just a miss use of Doctrine.
|Comment by Benjamin Eberlei [ 30/Jun/13 ]|
Can you provide more information? The stack trace of the error for example? The entity you try to process+mapping and the DQL query. The current information is not enough to reproduce this error.
|Comment by Johanny Clerc-Renaud [ 01/Jul/13 ]|
here is the Entity and with the corresponding Mapping :
The Entity have been generated by using this documentation page : http://symfony.com/doc/current/cookbook/doctrine/reverse_engineering.html
In this project I work with 2 databases, and one of it already exist.
Working with symfony I use the DQL Query obtain with those methods :
And here is the stack trace, when the eror comes :
You can also see here the source code that lead to this error :
There are all the information you ask, if you need more just tell me. For now i can see how to be more specific. Remember that if I switch the hydrator to Query::HYDRATE_SIMPLEOBJECT it solve the bug.
I hope all of this will help.