mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-08 07:44:59 +00:00
fix for comment embeddable null + template adjustments
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user