public function __set($strKey, $varValue) { if ($this->{$strKey} === $varValue) { return; } $this->markModified($strKey); $this->arrData[$strKey] = $varValue; unset($this->arrRelated[$strKey]); }