article

Friday, June 3, 2011

CakePHP GROUP BY

CakePHP GROUP BY



$this->Product->find(‘all’,array(‘fields’=>array(‘Product.type’,'MIN(Product.price) as price’), ‘group’=> ‘Product.type’));

Related Post