diff --git a/src/TaggableBehavior.php b/src/TaggableBehavior.php index b11dc00..4e64b40 100644 --- a/src/TaggableBehavior.php +++ b/src/TaggableBehavior.php @@ -184,6 +184,9 @@ public function afterSave() */ public function beforeDelete() { + if ($this->owner->hasErrors()) { + return; + } $tagRelation = $this->owner->getRelation($this->tagRelation); $pivot = $tagRelation->via->from[0];