2008-08-31 22:27:16 +04:00
|
|
|
<?php
|
|
|
|
|
2008-09-07 17:48:40 +04:00
|
|
|
#namespace Doctrine::ORM::Id;
|
2008-08-31 22:27:16 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enter description here...
|
|
|
|
*
|
|
|
|
* @todo Rename to AbstractIdGenerator
|
|
|
|
*/
|
2008-09-12 14:02:06 +04:00
|
|
|
abstract class Doctrine_ORM_Id_AbstractIdGenerator
|
2008-08-31 22:27:16 +04:00
|
|
|
{
|
2008-09-07 17:48:40 +04:00
|
|
|
const POST_INSERT_INDICATOR = 'POST_INSERT_INDICATOR';
|
|
|
|
|
2008-08-31 22:27:16 +04:00
|
|
|
protected $_em;
|
|
|
|
|
2008-09-12 17:16:05 +04:00
|
|
|
public function __construct(Doctrine_ORM_EntityManager $em)
|
2008-08-31 22:27:16 +04:00
|
|
|
{
|
|
|
|
$this->_em = $em;
|
|
|
|
}
|
|
|
|
|
2008-12-18 17:08:11 +03:00
|
|
|
abstract public function generate($entity);
|
2008-08-31 22:27:16 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|