/** * @param string $name * @return null */ public function setName($name) { if (!isset($this->loadedFields['name'])) { $this->loadProperties(); } $oldValue = null; if (array_key_exists('name', $this->loadedValues)) { $oldValue = $this->loadedValues['name']; } if ($oldValue === $name) { $this->name = $name; return; } return parent::setName($name); }