Beispiel #1
0
 public function save()
 {
     parent::save();
     if (!$this->getIsDeleted()) {
         if ($this->getTypeInstance()->getId()) {
             $this->getTypeInstance()->delete();
         }
         $this->getTypeInstance()->setData($this->_getTypeInstanceData())->setVideoId($this->getId())->save();
     }
     return $this;
 }