views:

129

answers:

1

Hi, I'm trying to do a very simple sql query like this, to a propel Criteria :

SELECT count(id_user) FROM myTable WHERE id_page = 5

I did'nt found informations on the documentation.

Have you an idea ??

+3  A: 
$c = new Criteria();
$c->add(myTablePeer::ID_PAGE,5);
$count = myTablePeer::doCount($c);
Piskvor
thanks !!!!!!!!
bahamut100
You're welcome. It's one of those things that's really simple once you know how to do it ;)
Piskvor