YiiSolr
YiiSolr copied to clipboard
ASolrSort method declaration in E_STRICT error mode
I get the following error message when using a AsolrDataProvider in PHP E_STRICT error mode:
Declaration of ASolrSort::getOrderBy() should be compatible with that of CSort::getOrderBy()
I guess adding a parameter would fix this:
public function getOrderBy($criteria=null)
{
throw new CException('Solr sorting does not support ORDER BY');
}
Fixed on this commit.