ox160d05d
12/16/2019 - 4:02 AM

PHP/Go do only once

    <?php
    
    //...
    private function ensureTransactionStarted()
    {
        if (!$this->transactionStarted) {
            $this->em->beginTransaction();
            $this->transactionStarted = true;
        }
    }
    //...