Order Relations
Posted: Tue Aug 30, 2016 5:54 pm
Hi,
i have a table with a column called 'ordering' which is supposed to be used to sort items in a list without affecting primary keys.
How can i tell QxOrm to order on that column the list of items when i do on the parent object a fetch_by_id_with_all_relations?
QxCollection has the sortByKey and sortByValue methods but i cannot sort on a other columns as far as i have understood.
Thanks
i have a table with a column called 'ordering' which is supposed to be used to sort items in a list without affecting primary keys.
How can i tell QxOrm to order on that column the list of items when i do on the parent object a fetch_by_id_with_all_relations?
QxCollection has the sortByKey and sortByValue methods but i cannot sort on a other columns as far as i have understood.
Thanks