Getting the count of a number of objects
To determine how many objects meeting a particular set of conditions exist,
use the count method:
my $count = MT::Foo->count({ foo => 'bar' });
count takes the same arguments as load and load_iter.
This page is part of the MT::Object Reference
This page was last updated on 2008-10-01, 17:07.
Leave a note
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.