From 03507fcd50809223d5e694c2a92bb64872430ab2 Mon Sep 17 00:00:00 2001 From: Antonio Pauletich Date: Tue, 16 Apr 2024 12:53:46 +0200 Subject: [PATCH] Fix getting table name --- src/AuditConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AuditConfiguration.php b/src/AuditConfiguration.php index da87f8a3..45f105a9 100644 --- a/src/AuditConfiguration.php +++ b/src/AuditConfiguration.php @@ -72,7 +72,7 @@ public function getTableName(ClassMetadataInfo $metadata) { $tableName = $metadata->getTableName(); - if (null !== $metadata->getSchemaName()) { + if (null !== $metadata->getSchemaName() && '' !== $metadata->getSchemaName()) { $tableName = $metadata->getSchemaName().'.'.$tableName; }