TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * {@inheritdoc} */ public function rules() { return [ [['store_id', 'is_video_audit', 'is_author_audit', 'created_at', 'updated_at'], 'integer'], [['profit'], 'number'], [['verify'], 'string'] ]; } }