Doctrine\DBAL\Connection::ping()
I found this commit that introduced it but no info about successor for this method was given.
I would like to know what is expected alternative for this functionality.
Should I just rely on isConnected()
?
Doctrine\DBAL\Connection::ping()
I found this commit that introduced it but no info about successor for this method was given.
I would like to know what is expected alternative for this functionality.
Should I just rely on isConnected()
?
I dug a bit deeper, and found this pull request
The author of this change says:
So, calling just a
isConnected()
is not very reliable, and you need to execute some kind of real query, for example:SELECT 1;
Hope this will help you!