..).
Author: Jan Vansteenlandt (jan@okfn.be)
Inheritance: extends Eloquent
Esempio n. 1
0
 /**
  * Because we have related models, and non hard defined foreign key relationships
  * we have to delete our related models ourselves.
  */
 public function delete()
 {
     // Get the related columns
     $columns = $this->tabularColumns()->getResults();
     foreach ($columns as $column) {
         $column->delete();
     }
     return parent::delete();
 }
Esempio n. 2
0
 /**
  * Because we have related models, and non hard defined foreign key relationships
  * we have to delete our related models ourselves.
  */
 public function delete()
 {
     // Get the related columns
     $columns = $this->tabularColumns()->getResults();
     foreach ($columns as $column) {
         $column->delete();
     }
     // Get the related geo properties
     $geo_properties = $this->geo()->getResults();
     foreach ($geo_properties as $geo_property) {
         $geo_property->delete();
     }
     return parent::delete();
 }