public function __unset($key) { if (!$this->isRetrieved()) { $this->retrieve(); } parent::__unset($key); if ($key === 'PHOTO') { $this->cacheThumbnail(null, true); } $this->setSaved(false); }
public function __unset($key) { if (!$this->isRetrieved()) { $this->retrieve(); } parent::__unset($key); if ($key === 'PHOTO') { Properties::cacheThumbnail($this->getBackend()->name, $this->getParent()->getId(), $this->getId(), null, $this, array('remove' => true)); } $this->setSaved(false); }