Add count method to models

Bug #652778 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rootin Tootin
Confirmed
Medium
Unassigned

Bug Description

We should be able to do:
Users.count();
to do this in sql:
select count(id) from users;

Don't forget about conditions:
Users.count(where("name = ? and age = ?", "tim", 57));

Matt Jones (workhorsy)
Changed in rester:
milestone: 0.8 → 0.9
Matt Jones (workhorsy)
Changed in rester:
milestone: 0.9 → 0.11
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.