Changeset 1276 for cpc/trunk/project/apps
- Timestamp:
- Aug 23, 2010, 4:00:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/parlementaire/actions/actions.class.php
r1275 r1276 231 231 $query = Doctrine::getTable('Parlementaire')->createQuery('p') 232 232 ->select('p.*, po.fonction as fonction, po.importance as imp') 233 ->where('p.groupe_acronyme = ?', $acro)234 233 ->leftJoin('p.ParlementaireOrganisme po') 235 234 ->leftJoin('po.Organisme o') 236 ->where('o.type = ?', 'groupe') 235 ->where('p.fin_mandat IS NULL') 236 ->andWhere('p.groupe_acronyme = ?', $acro) 237 ->andWhere('o.type = ?', 'groupe') 237 238 ->andWhere('o.nom = ?', $nom); 238 239 $query->orderBy("imp DESC, p.nom_de_famille ASC"); … … 262 263 ->leftJoin('po.Organisme o') 263 264 ->where('o.slug = ?', $orga) 265 ->andWhere('p.fin_mandat IS NULL') 264 266 ->orderBy("po.importance DESC, p.nom_de_famille ASC"); 265 267 $this->parlementaires = array();
Note: See TracChangeset
for help on using the changeset viewer.