169 $originalValuesIndex = array();
170 if (!empty($this->originalValues))
172 foreach(array_keys($this->originalValues) as $originalKey)
174 $originalValuesIndex[$originalKey] =
true;
178 $oldValue = $this->
get($name);
179 if ($oldValue != $value || ($oldValue ===
null && $value !==
null))
181 if (!isset($originalValuesIndex[$name]))
183 $this->originalValues[$name] = $this->
get($name);
185 elseif ($this->originalValues[$name] == $value)
187 unset($this->changedValues[$name]);
188 unset($this->originalValues[$name]);
192 $this->changedValues[$name] =
true;
328 if ($this->
isClone() && $cloneEntity->contains($this))
330 return $cloneEntity[$this];
333 $fieldsClone = clone $this;
334 $fieldsClone->isClone =
true;
336 if (!$cloneEntity->contains($this))
338 $cloneEntity[$this] = $fieldsClone;