entity class fixes

This commit is contained in:
yuri
2015-12-11 12:50:23 +02:00
parent 9a78cf2389
commit 7dc43e5ccc
+8 -2
View File
@@ -130,9 +130,15 @@ class Entity extends \Espo\ORM\Entity
if (!$this->hasField($idsField)) return null;
if (!$this->has($idsField)) {
$this->loadLinkMultipleField($field, true);
if (!$this->isNew()) {
$this->loadLinkMultipleField($field, true);
}
}
return $this->get($idsField);
$valueList = $this->get($idsField);
if (empty($valueList)) {
return [];
}
return $valueList;
}
public function hasLinkMultipleId($field, $id)