FactoryGirl\Provider\Doctrine\ORM\Locking\TableLock::getLockString PHP Method

getLockString() private method

Get the MySQL statement for locking the table underlying this repository for simple read and/or write operations given an appropriate lock mode
private getLockString ( integer $lockMode ) : string
$lockMode integer a TableLockMode constant
return string
    private function getLockString($lockMode)
    {
        $lockModeString = TableLockMode::toString($lockMode);
        if (!$lockModeString) {
            throw new LockException("Invalid lock mode: {$lockMode}");
        }
        $tableName = $this->getTableName();
        $aliases = $this->getTableAliasGuesstimates($tableName);
        return $this->constructLockString($tableName, $aliases, $lockModeString);
    }