[TYPO3-mvc] groupBy

Martin Kutschker masi-no at spam-typo3.org
Thu Nov 4 11:27:40 CET 2010


Am 04.11.2010 11:02, schrieb Franz Koch:

>> What I don't remember is if there is a clear distinction between queries that return models and
>> queries that return plain data.
> 
> well, there has to be, doesn't it? I currently don't see a use case where it would make sense to
> use/allow a groupBy if you like to get "clean" and persistable domain models. Of course you still
> might want the grouped results to be mapped on objects, but those have to be out of the scope of the
> persistence layer. For that I'm not sure if extbase should automatically try to map the results to
> objects, or if it should force "getRawResult" in this case and leave it the developers hands to do
> the object mapping (using API functions) if needed.

Ah, getRawResult it was. My idea was that there is no getRawResult but two distinct query objects,
eg query() and dataQuery(). The former would return objects (no grouping features, etc), the latter
will return data array (grouping and column functions).

Masi



More information about the TYPO3-project-typo3v4mvc mailing list