Skip to content

Commit

Permalink
Deleting CF values when the CF is deleted (#91)
Browse files Browse the repository at this point in the history
Co-authored-by: David <david.katalinic@asseco-see.hr>
  • Loading branch information
DaveXo9 and David authored Feb 7, 2024
1 parent 855d418 commit c5a7f00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App/Models/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected static function booted()
static::deleted(function (self $customField) {
$customField->parent()->delete();
$customField->children()->delete();
$customField->values()->delete();
});

static::saving(function (self $customField) {
Expand Down

0 comments on commit c5a7f00

Please sign in to comment.