Doctrine\OXM\Id\UuidGenerator::generate PHP Метод

generate() публичный Метод

Generates a new GUID
public generate ( XmlEntityManager $xem, $xmlEntity ) : string
$xem Doctrine\OXM\XmlEntityManager
Результат string
    public function generate(XmlEntityManager $xem, $xmlEntity)
    {
        if (!$this->salt) {
            throw new \Exception('Guid Generator requires a salt to be provided.');
        }
        $guid = $this->generateV4();
        return $this->generateV5($guid, $this->salt);
    }