developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #447: 447-jDao-selectfirst-groupby.diff

File 447-jDao-selectfirst-groupby.diff, 597 bytes (added by Julien, 12 years ago)
  • lib/jelix/dao/jDaoMethod.class.php

     
    127127        }
    128128
    129129        if(strlen($params['groupby'])){
    130             if($this->type == 'select'){
     130            if($this->type == 'select' || $this->type == 'selectfirst'){
    131131                $this->_groupBy = preg_split("/[\s,]+/", $params['groupby']);
    132132                $props = $this->_def->getProperties();
    133133                foreach($this->_groupBy as $p){