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}