orm entity id is changed fix

This commit is contained in:
yuri
2019-05-14 15:48:04 +03:00
parent 6758d71e2e
commit ee5218c46d
+8 -2
View File
@@ -453,15 +453,21 @@ abstract class Entity implements IEntity
public function getFetched($name)
{
if ($name === 'id') {
return $this->id;
}
if (isset($this->fetchedValuesContainer[$name])) {
return $this->fetchedValuesContainer[$name];
}
return null;
}
public function hasFetched($attributeName)
public function hasFetched($name)
{
return array_key_exists($attributeName, $this->fetchedValuesContainer);
if ($name === 'id') {
return !!$this->id;
}
return array_key_exists($name, $this->fetchedValuesContainer);
}
public function resetFetchedValues()