PHP Class Ramsey\Uuid\Doctrine\UuidGenerator

Inheritance: extends Doctrine\ORM\Id\AbstractIdGenerator
显示文件 Open project: ramsey/uuid-doctrine

Public Methods

Method Description
generate ( EntityManager $em, Doctrine\ORM\Mapping\Entity $entity ) : Ramsey\Uuid\Uuid Generate an identifier

Method Details

generate() public method

Generate an identifier
public generate ( EntityManager $em, Doctrine\ORM\Mapping\Entity $entity ) : Ramsey\Uuid\Uuid
$em Doctrine\ORM\EntityManager
$entity Doctrine\ORM\Mapping\Entity
return Ramsey\Uuid\Uuid