AbstractIdGenerator.php 435 Bytes
Newer Older
1 2
<?php

romanb's avatar
romanb committed
3
#namespace Doctrine::ORM::Id;
4 5 6 7 8 9

/**
 * Enter description here...
 *
 * @todo Rename to AbstractIdGenerator
 */
romanb's avatar
romanb committed
10
abstract class Doctrine_ORM_Id_AbstractIdGenerator
11
{
romanb's avatar
romanb committed
12 13
    const POST_INSERT_INDICATOR = 'POST_INSERT_INDICATOR';
    
14 15 16 17 18 19 20
    protected $_em;
    
    public function __construct(Doctrine_EntityManager $em)
    {
        $this->_em = $em;
    }
    
romanb's avatar
romanb committed
21
    abstract public function generate(Doctrine_ORM_Entity $entity);
22 23 24
}

?>