src/Session/SaveHandler/DoctrineDbal.php
public function gc($maxlifetime)
    {
        $queryBuilder = $this->getConnection()->createQueryBuilder();
        $queryBuilder->delete($this->getOptions()->getTableName())
            ->where(sprintf(
                    '%s + %s < %s',
                    $this->getConnection()->quoteIdentifier($this->options->getModifiedColumn()),
                    $this->getConnection()->quoteIdentifier($this->options->getLifetimeColumn()),
                    time()
            ));

        return $queryBuilder->execute();
    }
public function gc($maxlifetime)
    {
        $queryBuilder = $this->getConnection()->createQueryBuilder();
        $queryBuilder->delete($this->getOptions()->getTableName())
            ->where(sprintf(
                    '%s + %s < %s',
                    $this->getConnection()->quoteIdentifier($this->options->getModifiedColumn()),
                    $this->getConnection()->quoteIdentifier($this->options->getLifetimeColumn()),
                    time()
            ));

        return $queryBuilder->execute();
    }
{@inheritDoc}