我意识到save()和commit()将执行相同的数据库事务两次。teamId, $user->get('_id'));$this->db->exec($sqlArray); //update made to some other table
UPDATE `users` SET `designation_id`=3,`lastname`='Mali' WHERE `id`=134
根据的说法,Connection#commit()可以抛出SQLException。我的问题是,在这种情况下是否仍然应该执行回滚。opened connection with setAutoCommit(false) // what if con.commit() failed, is this still neces