From 7dd881b5d9d1323056ef177e769d92b159507ddb Mon Sep 17 00:00:00 2001 From: Thilo Ratnaweera Date: Fri, 18 Nov 2022 17:09:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fixes=20#9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Services/Sql/ExecuteService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Services/Sql/ExecuteService.php b/src/Services/Sql/ExecuteService.php index 60a48f2..24f3a52 100644 --- a/src/Services/Sql/ExecuteService.php +++ b/src/Services/Sql/ExecuteService.php @@ -36,9 +36,10 @@ class ExecuteService public function __construct(EntityManagerInterface $entityManager) { $platform = $entityManager->getConnection()->getDatabasePlatform(); - if (! in_array($platform, self::SUPPORTED_PLATFORMS)) { + if (! in_array(get_class($platform), self::SUPPORTED_PLATFORMS)) { echo sprintf( - 'WARNING: Unsupported database platform: %s', $platform::class + 'WARNING: Unsupported database platform: %s', + get_class($platform) ) . PHP_EOL; } $this->connection = $entityManager->getConnection();