1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/lib/Doctrine/Id/IdentityGenerator.php

23 lines
449 B
PHP
Raw Normal View History

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