Hi! I have a Criteria using GroupsByColumn and the thing is I want to show on the template the number of rows (elements) on every group. For example I'm grouping by Country fied and on the template I want to show NameCountry (Number of Elements).
I don't know how to do this. Could anybody help me please ? I have this function: public function generaLinkAmbito(sfWebRequest $peticion) { $c = new Criteria(); $cont = new Criteria(); $c->addJoin(ConvocatoriasPeer::COUNTRY_CODE, CountryPeer::CODE, Criteria::INNER_JOIN); $c->addGroupByColumn(ConvocatoriasPeer::COUNTRY_CODE); $links_ambito = ConvocatoriasPeer::doSelect($c); $this->links_ambito = $links_ambito; } AND ON THE TEMPLATE: <?php foreach($links_ambito as $link_ambito): echo link_to($link_ambito->getPaises()->getDescripcion(), 'convocatorias/index?pais='.$link_ambito->getCodigoPais()); echo '('. $HERE THE NUMBER OF ROWS].')'; echo '<br>'; endforeach; ?> THANKS A LOT !!!!! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en