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

28 lines
470 B
PHP
Raw Normal View History

<?php
namespace Doctrine\ORM\Id;
class IdentityGenerator extends 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;
}
}