From 7538abb8649e18db0a0a58d47d07d62042ddd2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Israel=20Ortu=C3=B1o?= Date: Wed, 6 Jun 2018 18:56:25 +0200 Subject: [PATCH] Removed relationship existence check --- .../Database/Eloquent/Concerns/HasRelationships.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php b/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php index 84cd09010ecc..49f4544d4177 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php @@ -714,9 +714,7 @@ public function setRelation($relation, $value) */ public function unsetRelation($relation) { - if ($this->relationLoaded($relation)) { - unset($this->relations[$relation]); - } + unset($this->relations[$relation]); return $this; }