/** * @inheritdoc */ public function rules() { return ArrayHelper::merge(parent::rules(), [['comment_post_id', 'required'], ['comment_post_id', 'integer']]); }