_sequenceName = $sequenceName; } /** * Enter description here... * * @param Doctrine_ORM_Entity $entity * @override */ public function generate($entity) { $conn = $this->_em->getConnection(); $sql = $conn->getDatabasePlatform()->getSequenceNextValSql($this->_sequenceName); return $conn->fetchOne($sql); } } ?>