Changeset 925
- Timestamp:
- 07/22/08 21:19:56 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/AkActiveRecord.php
r848 r925 1031 1031 return false; 1032 1032 } 1033 $valid_keys = array('conditions', 'include', 'joins', 'limit', 'offset', ' order', 'sort', 'bind', 'select','select_prefix', 'readonly');1033 $valid_keys = array('conditions', 'include', 'joins', 'limit', 'offset', 'group', 'order', 'sort', 'bind', 'select','select_prefix', 'readonly'); 1034 1034 foreach (array_keys($options) as $key){ 1035 1035 if (!in_array($key,$valid_keys)){ … … 1357 1357 } 1358 1358 1359 $sql .= !empty($options['order']) ? ' ORDER BY '.$options['order'] : ''; 1359 $sql .= !empty($options['group']) ? ' GROUP BY '.$options['group'] : ''; 1360 $sql .= !empty($options['order']) ? ' ORDER BY '.$options['order'] : ''; 1360 1361 1361 1362 $this->_db->addLimitAndOffset($sql,$options);
