TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * {@inheritdoc} */ public function rules() { return [ [['store_id', 'vl_id', 'is_delete', 'reply_id', 'user_id', 'updated_at', 'created_at', 'status', 'parent_id', 'top_parent_id'], 'integer'], [['reply_name', 'comment'], 'string'], ]; } }