Skip to content

Commit

Permalink
🐛 fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
netbrothers-tr committed Nov 18, 2022
1 parent 90f035b commit 7dd881b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Services/Sql/ExecuteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7dd881b

Please sign in to comment.