[TYPO3-mvc] Sort query results by a sub-model property

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Wed Feb 9 11:42:59 CET 2011


Thomas "Thasmo" Deinhamer wrote:
> trying to sort a query result by the
> date property of sub models seems to fail.

Hoi all!

Still facing the problem and not sure
how to solve it in an appropriate way.

Is it somehow possible to order objects
by a sub-object's property?

In detail, I want to order Projects by
their newest product.

But using the project repository, creating
an own method and sorting by 'products.date'
doesn't seem to work properly.

It seems ordering is done, but it only
used the date of the first product of
each project.

I'd appreciate any help on this!

Thanks,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list