Groups
Groups
Sign in
Groups
Groups
DataMapper
Conversations
About
Send feedback
Help
How to order by property of a belongs_to relationship
11 views
Skip to first unread message
Philipp Kursawe
unread,
Jan 17, 2012, 7:42:42 PM
1/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DataMapper
class License
belongs_to :customer
end
class Customer
has n, :licenses
property company, String
end
How can I order the licenses based on their customer.company value?
License.all(order => [:company.desc]) does not work of course.
Reply all
Reply to author
Forward
0 new messages