Skip to content

Commit

Permalink
FIX delete mark relations when deleting entity
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardodallavia committed Aug 29, 2022
1 parent b5df001 commit 6f8e5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Markable.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function bootMarkable(): void

static::addGlobalScope(new MarkableScope);

static::deleted(
static::deleting(
fn ($markable) => self::deleteMarks($markable)
);
}
Expand Down

0 comments on commit 6f8e5cc

Please sign in to comment.