Esempio n. 1
0
 /**
  *
  */
 public function delete()
 {
     foreach ($this->attributes()->get() as $attribute) {
         $attribute->delete();
     }
     parent::delete();
 }
Esempio n. 2
0
 /**
  * @param array $options
  */
 public function save(array $options = [])
 {
     if ($this->path == '') {
         $this->setPath();
     }
     parent::save($options);
 }
Esempio n. 3
0
 /**
  *
  */
 public function delete()
 {
     $parameters = ['attribute_id' => $this->id, 'page_id' => $this->page()->id, 'version_number' => $this->version->version];
     $this->type()->delete($parameters);
     parent::delete();
 }