Skip to content

Commit c5a7f00

Browse files
DaveXo9David
andauthored
Deleting CF values when the CF is deleted (#91)
Co-authored-by: David <[email protected]>
1 parent 855d418 commit c5a7f00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/App/Models/CustomField.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ protected static function booted()
6565
static::deleted(function (self $customField) {
6666
$customField->parent()->delete();
6767
$customField->children()->delete();
68+
$customField->values()->delete();
6869
});
6970

7071
static::saving(function (self $customField) {

0 commit comments

Comments
 (0)