diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index 017cb5a0c9d..abb83d6fa35 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -2142,6 +2142,12 @@ public function createQueryBuilder() */ public function ping() { + Deprecation::trigger( + 'doctrine/dbal', + 'https://github.com/doctrine/dbal/pull/4119', + 'Retry and reconnnecting lost connections now happens automatically, ping() will be removed in DBAL 3.' + ); + $connection = $this->getWrappedConnection(); if ($connection instanceof PingableConnection) {