Пример #1
0
 protected function getRules()
 {
     return array_merge_recursive(parent::getRules(), ['name' => [['not_empty']]]);
 }
Пример #2
0
 protected function getRules()
 {
     return array_merge_recursive(parent::getRules(), ['filter' => [['is_array', [':value']]]]);
 }