PHP Class Doctrine\OXM\Id\AbstractIdGenerator

Since: 1.0
Author: Jonathan H. Wage ([email protected])
Author: Richard Fullmer ([email protected])
Show file Open project: doctrine/oxm

Public Methods

Method Description
generate ( XmlEntityManager $xem, object $xmlEntity ) : mixed Generates an identifier for an xml entity.
isPostInsertGenerator ( ) : boolean 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.

Method Details

generate() abstract public method

Generates an identifier for an xml entity.
abstract public generate ( XmlEntityManager $xem, object $xmlEntity ) : mixed
$xem Doctrine\OXM\XmlEntityManager
$xmlEntity object
return mixed

isPostInsertGenerator() public method

By default, this method returns FALSE. Generators that have this requirement must override this method and return TRUE.
public isPostInsertGenerator ( ) : boolean
return boolean