Create your own query class for the model, use traits and behaviors to add the required functionality and return an instance of this custom query class from find().
i use trait and also use behaviors. i use easyiicms(easyiicms.com) it’s not multi language. I add the multilingual behavior. But on default easyiicms in components/CategoryModel.php they override find method with
return new ActiveQueryNS(get_called_class()) which is NestedSets behavior.
On documentation of Multilingual behavior says override find method with return new MultilingualQuery(get_called_class()).
If i remove return new ActiveQueryNS(get_called_class()) and add return new MultilingualQuery(get_called_class())
multilingual behavior is ok. But how implement two beahvior on find method ?