fix set fetched link multiple

This commit is contained in:
yuri
2018-05-30 10:18:44 +03:00
parent ddc90a05d9
commit 143897cf18

View File

@@ -147,7 +147,9 @@ class Entity extends \Espo\ORM\Entity
}
$this->set($idsAttribute, $ids);
$this->setFetched($idsAttribute, $ids);
if (!$this->hasFetched($idsAttribute)) {
$this->setFetched($idsAttribute, $ids);
}
$this->set($field . 'Names', $names);
if ($hasType) {