This commit is contained in:
Yuri Kuznetsov
2024-02-08 10:15:17 +02:00
parent daa37961e4
commit 3f2ffb851f
2 changed files with 165 additions and 147 deletions
+36
View File
@@ -29,6 +29,7 @@
namespace Espo\Entities;
use Espo\Core\Field\LinkParent;
use Espo\Core\ORM\Entity;
use Espo\Core\Field\DateTime;
@@ -216,6 +217,41 @@ class Note extends Entity
return $this->get('createdById');
}
public function setType(string $type): self
{
$this->set('type', $type);
return $this;
}
public function setParent(LinkParent $parent): self
{
$this->setValueObject('parent', $parent);
return $this;
}
public function setRelated(LinkParent $related): self
{
$this->setValueObject('related', $related);
return $this;
}
public function setSuperParent(LinkParent $superParent): self
{
$this->setValueObject('superParent', $superParent);
return $this;
}
public function setPost(?string $post): self
{
$this->set('post', $post);
return $this;
}
public function loadAdditionalFields(): void
{
if (