Skip to content

EspoCRM – Open Source CRM Application

set name methods

Yuri Kuznetsov8102e9c4f221
diff --git a/application/Espo/Modules/Crm/Entities/Call.php b/application/Espo/Modules/Crm/Entities/Call.php
index 9c977fbf7e..e59f4c9133 100644
--- a/application/Espo/Modules/Crm/Entities/Call.php
+++ b/application/Espo/Modules/Crm/Entities/Call.php
@@ -46,6 +46,11 @@ class Call extends Entity
public const STATUS_HELD = 'Held';
public const STATUS_NOT_HELD = 'Not Held';
+ public function setName(?string $name): self
+ {
+ return $this->set(Field::NAME, $name);
+ }
+
public function getName(): ?string
{
return $this->get(Field::NAME);
diff --git a/application/Espo/Modules/Crm/Entities/CaseObj.php b/application/Espo/Modules/Crm/Entities/CaseObj.php
index 93abb6e623..560558f422 100644
--- a/application/Espo/Modules/Crm/Entities/CaseObj.php
+++ b/application/Espo/Modules/Crm/Entities/CaseObj.php
@@ -50,6 +50,11 @@ class CaseObj extends Entity
protected $entityType = 'Case';
+ public function setName(?string $name): self
+ {
+ return $this->set(Field::NAME, $name);
+ }
+
public function getName(): ?string
{
return $this->get(Field::NAME);
diff --git a/application/Espo/Modules/Crm/Entities/Meeting.php b/application/Espo/Modules/Crm/Entities/Meeting.php
index 3ba243baf2..d569eebbd4 100644
--- a/application/Espo/Modules/Crm/Entities/Meeting.php
+++ b/application/Espo/Modules/Crm/Entities/Meeting.php
@@ -51,6 +51,11 @@ class Meeting extends Entity
public const STATUS_HELD = 'Held';
public const STATUS_NOT_HELD = 'Not Held';
+ public function setName(?string $name): self
+ {
+ return $this->set(Field::NAME, $name);
+ }
+
public function getName(): ?string
{
return $this->get(Field::NAME);
diff --git a/application/Espo/Modules/Crm/Entities/Task.php b/application/Espo/Modules/Crm/Entities/Task.php
index b8105b3c88..54db37e249 100644
--- a/application/Espo/Modules/Crm/Entities/Task.php
+++ b/application/Espo/Modules/Crm/Entities/Task.php
@@ -50,6 +50,11 @@ class Task extends Entity
public const STATUS_CANCELED = 'Canceled';
public const STATUS_DEFERRED = 'Deferred';
+ public function setName(?string $name): self
+ {
+ return $this->set(Field::NAME, $name);
+ }
+
public function getStatus(): ?string
{
return $this->get('status');