Ah, I see. I did notice that zoo.all(population: (start..end)) is valid. I guess that's what you meant by "mix the two syntaxes."
[email protected] On Wednesday, April 3, 2013 at 9:08 PM, Chris Corbyn wrote: > That syntax is not a new Symbol format, it's a new Hash syntax, where the > keys are Symbols. You can't use that with DataMapper, since :staff.gt is not > a Symbol itself. You can mix the two syntaxes if you want though. > > Il giorno 04/apr/2013, alle ore 11:50, Gus Shotz <[email protected] > (mailto:[email protected])> ha scritto: > > How would I write zoo.all(:population.gte => 100, :staff.gt => 2) using the > > newer symbol: format? I was hoping I could do zoo.all(population: >= 100, > > staff: > 2) but it doesn't work. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "DataMapper" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected] > > (mailto:[email protected]). > > To post to this group, send email to [email protected] > > (mailto:[email protected]). > > Visit this group at http://groups.google.com/group/datamapper?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to a topic in the Google > Groups "DataMapper" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/datamapper/FDfepXSwXEU/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, send an email to > [email protected] > (mailto:[email protected]). > To post to this group, send email to [email protected] > (mailto:[email protected]). > Visit this group at http://groups.google.com/group/datamapper?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/datamapper?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
