Hi is it possible to nest the following code?
This is a part of my validation rules in a model.
I want to do it on the fly. So set title_clean = $this->title for validating it’s clean version. clean is an method.
['title_clean', 'default', 'value' => $this->title],
['title_clean', 'clean'],
['title_clean', 'unique', 'targetClass' => 'Jobs', 'targetAttribute' => 'title_clean', 'message' => 'The title was already taken.'],
Is this possible actually?