AbstractIdGenerator
public abstract class AbstractIdGenerator
Method Summary | |
---|---|
abstract mixed | generate(mixed em, Doctrine\ORM\Entity entity) Generates an identifier for an entity. |
boolean | Gets whether this generator is a post-insert generator which means that generate() must be called after the entity has been inserted into the database. |
public abstract mixed generate(mixed em, Doctrine\ORM\Entity entity)
Generates an identifier for an entity.
public boolean isPostInsertGenerator()
Gets whether this generator is a post-insert generator which means that
generate()
must be called after the entity has been inserted
into the database.
By default, this method returns FALSE. Generators that have this requirement must override this method and return TRUE.