Serhii Andriichuk
Serhii Andriichuk
Not necessarily, more important is the part where we execute actual DB queries. The same behavior with plain queries: ``` $transactionManager = $this->di->get('transactionManager'); $transactionManager->get(true); $this->db->execute('update users set balance = 10...
It works for the transaction received from the transaction manager ```php $user = Users::findFirst(173431); $transactionManager = $this->di->get('transactionManager'); $transaction = $transactionManager->get(true); $user->balance = 10; $user->save(); $transaction->commit(); // Successful commit, balance changed...