Hi, I have one case where I don't know how made.
I have some tickets with one user by ticket. My objects are : class Ticket property :id, Serial property :name, String belongs_to :user end class User property :id, Serial property :name, String has n, :tickets end If I want search a ticket with user name, i can do : Ticket.all( 'user.name' => 'foo') But If I want ordering my ticket by user.name I can't. Ticket.all :order => 'user.name' There are no way to do that ? because my user.id is not same order that name. Thanks for you help -- Cyril Mougel http://blog.shingara.fr --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
