Doctrine


Doctrine\ORM\Id\AbstractIdGenerator
/Doctrine/ORM/Id/AbstractIdGenerator.php at line 7

Class AbstractIdGenerator

AbstractIdGenerator

public abstract class AbstractIdGenerator


Method Summary
abstract mixed

generate(mixed em, Doctrine\ORM\Entity entity)

Generates an identifier for an entity.

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.

Method Detail

/Doctrine/ORM/Id/AbstractIdGenerator.php at line 15

generate

public abstract mixed generate(mixed em, Doctrine\ORM\Entity entity)

Generates an identifier for an entity.


/Doctrine/ORM/Id/AbstractIdGenerator.php at line 27

isPostInsertGenerator

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.


Doctrine