Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Use Scope On Mymodel('search')

$
0
0
Hi

How to apply a scope in a new model('search') ?

I try

  $model = new myModel('search');
  $model=$model->myScope();


But it seems apply both of defaultScope and myScope scopes.

How Can I solve it?

Thanks!

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>