diff --git a/src/PricingManager/Rule/Dao.php b/src/PricingManager/Rule/Dao.php index f878a7b0..77b360ba 100644 --- a/src/PricingManager/Rule/Dao.php +++ b/src/PricingManager/Rule/Dao.php @@ -76,11 +76,14 @@ public function create(): void */ public function save(): void { - if (!$this->model->getId()) { - $this->create(); - } + $this->db->transactional(function () { + if (!$this->model->getId()) { + $this->create(); + } + + $this->update(); + }); - $this->update(); } public function update(): void