Doctrine\ORM\Id\TableGenerator
Id generator that uses a single-row database table and a hi/lo algorithm.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class TableGenerator
extends AbstractIdGenerator
{
- // members
- private $_tableName;
- private $_sequenceName;
- private $_allocationSize;
- private $_nextValue;
- private $_maxValue;
- // methods
- public void __construct()
- public void generate()
- // Inherited methods from AbstractIdGenerator
- public abstract mixed generate()
- public boolean isPostInsertGenerator()
Hierarchy
Members
private
- $_allocationSize
- $_maxValue
- $_nextValue
- $_sequenceName
- $_tableName
Methods
public
Inherited from Doctrine\ORM\Id\AbstractIdGenerator
public
- generate() — Generates an identifier for an entity.
- 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.