1
0
mirror of synced 2025-01-18 22:41:43 +03:00
doctrine2/lib/Doctrine/ORM/Id/IdentityGenerator.php

23 lines
457 B
PHP
Raw Normal View History

<?php
2008-09-12 10:02:06 +00:00
class Doctrine_ORM_Id_IdentityGenerator extends Doctrine_ORM_Id_AbstractIdGenerator
{
2008-09-07 13:48:40 +00:00
/**
* Enter description here...
*
* @param Doctrine_Entity $entity
* @return unknown
* @override
*/
public function generate(Doctrine_Entity $entity)
{
2008-09-07 13:48:40 +00:00
return self::POST_INSERT_INDICATOR;
}
public function getPostInsertId()
{
return $this->_em->getConnection()->lastInsertId();
}
}
?>