Skip to content

Commit fc8aa5b

Browse files
committed
ensure a relation between template and content is remove while content is deleting
1 parent 6a02aa4 commit fc8aa5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Observers/ContentObserver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ public function forceDeleting($model)
127127
$model->path()->delete();
128128
$model->routes()->delete();
129129

130+
$model->templateable()->delete();
131+
130132
$this->clearCached(); // Since the navigation is deleted, we need to clear the cache.
131133
}
132134

0 commit comments

Comments
 (0)