I create custom setter for Model property:
class Test extends Model {
protected $restrictions;
public function setRestrictions ($value) {
die('setter called');
}
}
In controller I try to set array to property:
$model->restrictions = [];
// setter wasnt called
I need to set array and implement my custom logic in setter.