From 7ebf9ab7376883222ce3d4889c85fb9afd9a56be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Proch=C3=A1zka?= Date: Tue, 24 Oct 2023 14:24:15 +0200 Subject: [PATCH] Save full className into database --- src/Entity/Record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Record.php b/src/Entity/Record.php index d13af49..421368b 100644 --- a/src/Entity/Record.php +++ b/src/Entity/Record.php @@ -121,7 +121,7 @@ public function getMessageFormatted(): string public function setTarget(object $target, ?int $targetId = null): void { $this->targetId = $target->getId() ?? $targetId; - $this->target = Format::className($target); + $this->target = $target::class; }