From a5c215298455a93d298351191c8ee56401df2fa3 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 6 Mar 2021 19:44:53 +0100 Subject: [PATCH] [GH-4119] Add deprecation to Connection::ping. --- lib/Doctrine/DBAL/Connection.php | 6 ++++++ 1 file changed, 6 insertions(+) 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) {