diff --git a/application/Espo/Entities/Note.php b/application/Espo/Entities/Note.php index 4f67950ce3..54925025cd 100644 --- a/application/Espo/Entities/Note.php +++ b/application/Espo/Entities/Note.php @@ -240,7 +240,8 @@ class Note extends Entity public function setSuperParent(LinkParent $superParent): self { - $this->setValueObject('superParent', $superParent); + $this->set('superParentId', $superParent->getId()); + $this->set('superParentType', $superParent->getEntityType()); return $this; }