..).
저자: Jan Vansteenlandt (jan@okfn.be)
상속: extends Eloquent
예제 #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();
 }
예제 #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();
 }