コード例 #1
0
ファイル: XlsDefinition.php プロジェクト: jalbertbowden/core
 /**
  * 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
ファイル: ShpDefinition.php プロジェクト: jalbertbowden/core
 /**
  * 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();
 }