getEntityBeforeUpdate

This commit is contained in:
yuri
2015-02-03 12:38:10 +02:00
parent 7316866a1a
commit 230ed63e67
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ class Email extends Record
$this->dependencies[] = 'crypt';
}
protected $fetchEntityBeforeUpdate = true;
protected $getEntityBeforeUpdate = true;
protected function getFileManager()
{

View File

@@ -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);