FactoryGirl\Provider\Doctrine\ORM\Repository::transactionWithTableLock PHP Method

transactionWithTableLock() public method

Attempt to acquire a table level lock in MySQL for the duration of the given transaction. IS NOT IN ANY WAY GUARANTEED TO WORK.
See also: TableLock
public transactionWithTableLock ( integer $lockMode, callback $transaction ) : mixed
$lockMode integer a TableLockMode constant
$transaction callback
return mixed
    public function transactionWithTableLock($lockMode, $transaction)
    {
        return $this->getTableLock()->transaction($lockMode, $transaction);
    }