[DCOM-17] Add Collection::slice($offset, $length) Created: 08/Aug/10 Updated: 14/Jan/11 Resolved: 24/Aug/10
|Reporter:||Benjamin Eberlei||Assignee:||Benjamin Eberlei|
Since we are still at a point were bc breaks are potentially not so harming:
We need a slice() method on the Collection for forward compatibility, the support for large and very large collections using FETCH_EXTRA would heavily benefit from a method like this.
The ArrayCollection implement would be:
|Comment by Benjamin Eberlei [ 08/Aug/10 ]|
Updated preserve paragraph
|Comment by Benjamin Eberlei [ 24/Aug/10 ]|
|Comment by Jan Pieper [ 14/Jan/11 ]|
Is there any reason why slice() returns an array although methods like filter() and map() return an instance of Doctrine\Common\Collections\ArrayCollection?