1
0
mirror of synced 2025-02-02 13:31:45 +03:00
doctrine2/lib/Doctrine/ORM/Id/IdentityGenerator.php

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