<?phprequire_once("Common.php");/** * pgsql driver */classDoctrine_Connection_PgsqlextendsDoctrine_Connection_Common{/** * returns the next value in the given sequence * @param string $sequence * @return integer */publicfunctiongetNextID($sequence){$stmt=$this->query("SELECT NEXTVAL('$sequence')");$data=$stmt->fetch(PDO::FETCH_NUM);return$data[0];}