Answer the question
In order to leave comments, you need to log in
Is it possible to merge (merge) the scope of the current class with the scope of the parent class in yii?
Hello,
For example:
class ActiveRecord extends CActiveRecord
{
...
return
[
'published'=>
[
'condition'=>'exist = ' . self::STATUS_PUBLIC,
],
];
...
}
class Bids extends ActiveRecord
{
...
// тут необходимо слить текущую группу scopes с родительской, но не перебить при этом
...
}
$model = Bids::model()->published()->busy()->findAll();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question