Doctrine/DBAL/Driver/PDODblib/Connection.php
public function lastInsertId($name = null)
    {
        $stmt = $this->query('SELECT SCOPE_IDENTITY()');
        $id   = $stmt->fetchColumn();
        $stmt->closeCursor();
        return $id;
    }
public function lastInsertId($name = null)
    {
        $stmt = $this->query('SELECT SCOPE_IDENTITY()');
        $id   = $stmt->fetchColumn();
        $stmt->closeCursor();
        return $id;
    }
{@inheritdoc}