Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [[['date', 'category_id', 'status'], 'required'], [['category_id', 'status'], 'integer'], [['date'], DateTimeValidator::className()], [['image_description', 'redirect'], 'string', 'max' => 255], [['image', 'tagIds'], 'safe'], ['categories', ManyToManyValidator::className()]];
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [['editableUsers', ManyToManyValidator::className()]];
 }