Skip to content

Commit

Permalink
Save full className into database
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Oct 24, 2023
1 parent 40ca17d commit 7ebf9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 7ebf9ab

Please sign in to comment.