Doctrine


Doctrine\ORM\Id\TableGenerator
/Doctrine/ORM/Id/TableGenerator.php at line 19

Class TableGenerator

Class:TableGenerator - Superclass: AbstractIdGenerator
AbstractIdGenerator
⌊ TableGenerator

public class TableGenerator
extends AbstractIdGenerator

Id generator that uses a single-row database table and a hi/lo algorithm.

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision$
Author:
Benjamin Eberlei
Guilherme Blanco
Jonathan Wage
Roman Borschel

Constructor Summary

TableGenerator(mixed tableName, mixed sequenceName, mixed allocationSize)

Method Summary
mixed

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

Generates an identifier for an entity.

Methods inherited from Doctrine\ORM\Id\AbstractIdGenerator
generate, isPostInsertGenerator

Constructor Detail

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

TableGenerator

public TableGenerator(mixed tableName, mixed sequenceName, mixed allocationSize)

Method Detail

/Doctrine/ORM/Id/TableGenerator.php at line 34

generate

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

Generates an identifier for an entity.


Doctrine