fix for comment embeddable null + template adjustments

This commit is contained in:
2022-01-21 12:07:54 +01:00
parent 8a2e588190
commit f26cba415b
3 changed files with 34 additions and 5 deletions

View File

@@ -182,6 +182,11 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface
public function setComment(?CommentEmbeddable $comment): self
{
if ($comment === null) {
$this->comment->setComment('');
return $this;
}
$this->comment = $comment;
return $this;