In Yii framework,
how can I disable defaultScope
?
I tried with resetScope(false)
and resetScope(true)
but to no avail.
Any help would be really appreciated.
In Yii framework,
how can I disable defaultScope
?
I tried with resetScope(false)
and resetScope(true)
but to no avail.
Any help would be really appreciated.
you can disable defaultScode by overriding defaultScope()
method and returning empty array.
public function defaultScope()
{
return array();
}