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