[FLOW3-general] Orderings in Query
Georg Ortner
go at simplaweb.at
Mon Jan 31 04:10:44 CET 2011
Hi folks,
I have a question concerning orderings in persistence query. I've got a
Model Item which has a description and a supplier. The description is just a
text but the supplier is a model which has a property called name.
So when I want a list of all my items ordered by description its easy and
works perfect:
setOrderings(array('description' =>
\F3\FLOW3\Persistance\QueryInterface::ORDER_ASCENDING))
But when I want a list ordered by supplier name I can just do:
setOrderings(array('supplier' =>
\F3\FLOW3\Persistance\QueryInterface::ORDER_ASCENDING))
This results in a wired ordered list which I think is ordered by the
supplier unique id. So my question is what can I do about that? Can I do
something similar than this:
setOrderings(array('supplier.name' =>
\F3\FLOW3\Persistance\QueryInterface::ORDER_ASCENDING))
Thank you very much!
George
More information about the FLOW3-general
mailing list