1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/lib/Doctrine/ORM/Id/IdentityGenerator.php
2009-01-03 19:50:13 +00:00

26 lines
474 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($entity)
{
return $this->_em->getConnection()->lastInsertId();
}
/**
* @return boolean
* @override
*/
public function isPostInsertGenerator() {
return true;
}
}