ref
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user