Doctrine\ODM\PHPCR\UnitOfWork::generateUuid PHP Method

generateUuid() private method

private generateUuid ( ) : string
return string a universally unique id.
    private function generateUuid()
    {
        // php 5.3 compatibility, no direct execution of this closure.
        $g = $this->uuidGenerator;
        // TODO do we need to check with the storage backend if the generated id really is unique?
        return $g();
    }
UnitOfWork