public function __set($variable, $value) { if (array_key_exists($variable, $this->fields)) { $this->durty = true; _Core_ObjectWatcher::addDirty($this); $this->fields[$variable] = $value; } }