id) &&$model->isDirty()) { // (new \app\common\services\operation\SaleLog($model, 'update')); // } } public function updating( $model) { (new \app\common\services\operation\SaleLog($model, 'update')); } }