1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/lib/Doctrine/ORM/Id/SequenceIdentityGenerator.php
2008-09-12 10:02:06 +00:00

25 lines
495 B
PHP

<?php
class Doctrine_ORM_Id_SequenceIdentityGenerator extends Doctrine_ORM_Id_IdentityGenerator
{
private $_sequenceName;
public function __construct($sequenceName)
{
$this->_sequenceName = $sequenceName;
}
/**
* Enter description here...
*
* @param Doctrine_Connection $conn
* @override
*/
public function getPostInsertId()
{
return $this->_em->getConnection()->lastInsertId($this->_sequenceName);
}
}
?>