1
0
mirror of synced 2025-01-06 00:57:10 +03:00
doctrine2/lib/Doctrine/ORM/Id/IdentityGenerator.php
2008-09-12 10:40:23 +00:00

23 lines
465 B
PHP

<?php
class Doctrine_ORM_Id_IdentityGenerator extends Doctrine_ORM_Id_AbstractIdGenerator
{
/**
* Enter description here...
*
* @param Doctrine_ORM_Entity $entity
* @return unknown
* @override
*/
public function generate(Doctrine_ORM_Entity $entity)
{
return self::POST_INSERT_INDICATOR;
}
public function getPostInsertId()
{
return $this->_em->getConnection()->lastInsertId();
}
}
?>