[TYPO3-mvc] [!!!] FYI: Breaking changes in recent commit of Extbase
Jochen Rau
jochen.rau at typoplanet.de
Mon Mar 8 20:13:54 CET 2010
Hi Thomas.
On 08.03.10 19:00, Thomas "Thasmo" Deinhamer wrote:
> Sounds really nice, but why would this be useful:
>
> "[!!!][~API] Extbase (Persistence): $query->execute() now returns a
> plain array of row-arrays instead of an RowIterator. This is a breaking
> change if you use your own Query object in combination with
> $querySettings->getRawQueryResult = TRUE."
>
> Is there any reason for this, returning a simple PHP array
> instead of an iterator class?
Lets turn it around: Is there any reason to return an iterator object
where a plain array does the job?
The RowIterator was implemented as a "container" to transport the row
array from the storage backend to the DataMapper. This was only overhead.
Now it is easier to feed the DataMapper with a plain array; or to work
with raw query results.
Another reason is, that we are now in sync with FLOW3 again.
Regards
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list