Is there any way to make an update to the model using conditions? Model.update method always affects all rows in the database, so if i need for example to update some property for entries with id 0..5000 i have to use adapter.execute now. Model.all(:id => 0..5000).update(params) works but it makes 5000 db queries instead of just one. So isn't this feature yet implemented or i just didn't find it?
-- 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.
