i m using Zendframework2 and using count function to count the number of values, it fails when i try to count the integer values
$q = $dm->createQueryBuilder('Admin\Document\Institution')
->field('id')->notEqual($id)
->field('coreid')->equals($post['coreid']);
$coreid = $q->getQuery()->execute()->count();
does count function works for integer valeues in Doctrine2 ODM?