1
0
mirror of synced 2025-01-19 06:51:40 +03:00
doctrine2/lib/Doctrine/ORM/Id/SequenceIdentityGenerator.php

24 lines
482 B
PHP
Raw Normal View History

2008-09-07 13:48:40 +00:00
<?php
namespace Doctrine\ORM\Id;
class SequenceIdentityGenerator extends IdentityGenerator
2008-09-07 13:48:40 +00:00
{
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);
}
}