Hey there! The model I'm operating on is an event planner. I want to build a query that returns the latest 3 past events, and the next 5 upcomming events.
I've figured out I can do this chaining all() twice, once for past events with limit 3, and once for future events, limit 5, always sorted by date, older to newer. Since I'm relatively new to datamapper, I wanted to have some input on this, because it's the first time I have to build a query like this. How would you manage to do this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
