Query builder - groupBy undefined

Hey guys,

seems like there might be a bug with the query builder.

$sources = Sources::query() 
            ->groupBy('website')    
            ->execute();

Returns:

Fatal error: Call to undefined method Phalcon\Mvc\Model\Criteria::groupBy() in (...)

All other builder functions work fine.

$sources = Sources::find(array('group' => 'website'));

Also works fine. Phalcon version 1.2.3.



85.3k

Currently, there is no option to set a group-by clause using a method