Michael Lackhoff schrieb: > I just discovered the power of the relationship definitions. It is so > easy to create a tree of one to many relationships. > There is only one problem: they are unsorted. > Is it possible to either define a default sort_by clause in the > relationship definition or when the relationship method is actually > used ($company->products({sort_by => 'name'}) or something like that?
$meta->relationships ( changes => {type => 'one to many', class => 'Changes', column_map => {ID => 'AUFTRAG'}, manager_args => {sort_by => 'CHANGES.DATUM DESC'}, query_args => [KATEGORIE => {ne => ''}], }, ); You can use "manager_args" for the ordering. Bye, Uwe ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object