UuidGenerator
extends AbstractIdGenerator
in package
Represents an ID generator that uses the database UUID expression
Tags
Table of Contents
- __construct() : mixed
- generate() : mixed
- Generates an identifier for an entity.
- isPostInsertGenerator() : bool
- Gets whether this generator is a post-insert generator which means that {@link generate()} must be called after the entity has been inserted into the database.
Methods
__construct()
public
__construct() : mixed
Return values
mixed —generate()
Generates an identifier for an entity.
public
generate(EntityManager $em, mixed $entity) : mixed
Parameters
- $em : EntityManager
- $entity : mixed
Tags
Return values
mixed —isPostInsertGenerator()
Gets whether this generator is a post-insert generator which means that {@link generate()} must be called after the entity has been inserted into the database.
public
isPostInsertGenerator() : bool
By default, this method returns FALSE. Generators that have this requirement must override this method and return TRUE.