/** * Get Last inserted ID * * @param string|optional $name * * <p> * Name of the sequence object from which the ID should be returned. * </p> * * <p>Used by PDO_PGSQL, for example (according to manual)</p> * * @return integer|string * ID of last inserted record * * @throws Next\DB\Driver\DriverException * A PDOException was caught */ public function lastInsertId($name = NULL) { try { return $this->getConnection()->lastInsertId($name); } catch (\PDOException $e) { throw DriverException::PDOException($e); } }