mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 23:16:03 +00:00
getEntityBeforeUpdate
This commit is contained in:
@@ -36,7 +36,7 @@ class Email extends Record
|
||||
$this->dependencies[] = 'crypt';
|
||||
}
|
||||
|
||||
protected $fetchEntityBeforeUpdate = true;
|
||||
protected $getEntityBeforeUpdate = true;
|
||||
|
||||
protected function getFileManager()
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ class Record extends \Espo\Core\Services\Base
|
||||
'preferences'
|
||||
);
|
||||
|
||||
protected $fetchEntityBeforeUpdate = false;
|
||||
protected $getEntityBeforeUpdate = false;
|
||||
|
||||
protected $entityName;
|
||||
|
||||
@@ -332,7 +332,7 @@ class Record extends \Espo\Core\Services\Base
|
||||
$this->filterInput($data);
|
||||
$this->handleInput($data);
|
||||
|
||||
if ($this->fetchEntityBeforeUpdate) {
|
||||
if ($this->getEntityBeforeUpdate) {
|
||||
$entity = $this->getEntity($id);
|
||||
} else {
|
||||
$entity = $this->getRepository()->get($id);
|
||||
|
||||
Reference in New Issue
Block a user