I have this code in an AR model:
/**
* Scope por default.
*
* @return array
*/
public function defaultScope()
{
$alias = $this->getTableAlias();
return array(
'condition'=>$alias.".activo='1'",
);
}
I get this fatal error:
Any help in solving this problem is appreciated. Thanks.