Changeset 1267

Show
Ignore:
Timestamp:
03/18/09 09:24:19 (1 year ago)
Author:
arnoschn
Message:

adding group by to findWithAssociation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/AkActiveRecord/AkAssociatedActiveRecord.php

    r1266 r1267  
    784784            $options['order'] = $options['sort']; 
    785785        } 
     786        $sql  .= !empty($options['group']) ? ' GROUP BY  '.$options['group'] : ''; 
    786787        $sql  .= !empty($options['order']) ? ' ORDER BY  '.$options['order'] : ''; 
    787  
     788         
    788789        $this->_db->addLimitAndOffset($sql,$options); 
    789790        return $sql;