[TYPO3-mvc] order by "calculated attribute" - several approaches

Sebastian Kurfürst sebastian at typo3.org
Mon Jun 7 10:43:11 CEST 2010


Hi Jigal,

> 4. Maintain a field with the average rating (and use it in an index) and
> sort on that field.
Thanks for sharing this idea -- I really like it!
I think due to the encapsulated nature of the Domain Model, it's quite
easy to update such a calculated field if any of the original values
within the object change.

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list