diff --git a/laravel/database/eloquent/relationships/has_many_and_belongs_to.php b/laravel/database/eloquent/relationships/has_many_and_belongs_to.php index ee37ca2e..7dc8b0a3 100644 --- a/laravel/database/eloquent/relationships/has_many_and_belongs_to.php +++ b/laravel/database/eloquent/relationships/has_many_and_belongs_to.php @@ -141,7 +141,7 @@ class Has_Many_And_Belongs_To extends Relationship { if (count($detach) > 0) { - $this->detach(array_diff($current, $ids)); + $this->detach($detach); } }