EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
note getCreatedBy method
Yuriic92e8dc34dc3
diff --git a/application/Espo/Entities/Note.php b/application/Espo/Entities/Note.phpindex 3c7d4b522d..7aa986e353 100644--- a/application/Espo/Entities/Note.php+++ b/application/Espo/Entities/Note.php@@ -29,6 +29,7 @@namespace Espo\Entities;+use Espo\Core\Field\Link;use Espo\Core\Field\LinkParent;use Espo\Core\Name\Field;use Espo\Core\ORM\Entity;@@ -387,4 +388,10 @@ class Note extends Entity/** @var EntityCollection<Attachment> */return $this->relations->getMany('attachments');}++ public function getCreatedBy(): ?Link+ {+ /** @var ?Link */+ return $this->getValueObject('createdBy');+ }}