Skip to content

Commit

Permalink
Removed relationship existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelOrtuno committed Jun 6, 2018
1 parent de003ac commit 7538abb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7538abb

Please sign in to comment.