[TYPO3-mvc] FYI: Property paths as operand in orderings
Jochen Rau
jochen.rau at typoplanet.de
Mon Mar 15 22:15:26 CET 2010
Hi.
With r2024 of Extbase I have implemented the possibility to specify
property paths for operands of orderings. It is now possible to order
the items of a query result by a property of an object inside the aggregate:
$query->setOrderings(array('client.address.zip' =>
Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING));
Additional I am going to implement support for something like
$query->setOrderings(array('posts.date' =>
Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING));
(inside a BlogRepository) for sorting across multi-value properties. The
resulting Blogs would be sorted by the date of the latest Post. (The
Posts inside the Blog would not be sorted by this setting!).
Both behaviors will be implemented in FLOW3, too. Please test and give
feedback.
Regards
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list