Use behavior without overwriting model class

Hey !

I explain my problem, I use the Humhub and Yii2 frameworks.
I would like to add behaviors on the models already defined without redefining the model.

Is it possible to do this in a config file?
I’ve seen that you can dynamically add behaviors to a model, but that’s not entirely right for me.

Thanks

Models aren’t components and are created with new so I think that it’s not possible to do it via config. Usually it is done by inheriting your models from BaseModel but that seems not to be your case…