Fix compatibility in Doctrine\DBAL\Connection