1
0
mirror of synced 2025-01-18 14:31:40 +03:00
doctrine2/lib/Doctrine/ORM/Id/IdentityGenerator.php

23 lines
445 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...
*
2008-09-12 10:40:23 +00:00
* @param Doctrine_ORM_Entity $entity
2008-09-07 13:48:40 +00:00
* @return unknown
* @override
*/
public function generate($entity)
{
2008-09-07 13:48:40 +00:00
return self::POST_INSERT_INDICATOR;
}
public function getPostInsertId()
{
return $this->_em->getConnection()->lastInsertId();
}
}
?>