How should traits be added to an existing model while extending plugins?
I tried the following with RainLab.User plugin:
UserModel::extend(function($model) {
$model->implement[] = 'October.Rain.Database.Trait.Nullable';
$model->nullable[] = 'company';
});
And got this error:
Indirect modification of overloaded property RainLab\User\Models\User::$nullable has no effect