Esempio n. 1
0
 public function __unset($key)
 {
     if (!$this->isRetrieved()) {
         $this->retrieve();
     }
     parent::__unset($key);
     if ($key === 'PHOTO') {
         $this->cacheThumbnail(null, true);
     }
     $this->setSaved(false);
 }
Esempio n. 2
0
 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);
 }