Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function save()
 {
     foreach ($this->types as $type => $options) {
         $this->getType($type);
     }
     if (parent::save() === true) {
         foreach ($this->data as $type => $file) {
             $file->setValue(null);
             $file->save();
         }
         $this->data = [];
         $this->makeImages();
     }
 }