Skip to content

Commit

Permalink
Revert "MorphTo: instantiate related class appropriate to given paren…
Browse files Browse the repository at this point in the history
…t instance"
  • Loading branch information
driesvints committed Feb 7, 2019
1 parent ae98e75 commit 9bbf644
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Illuminate/Database/Eloquent/Relations/MorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,17 +222,6 @@ public function touch()
}
}

/**
* Make a new related instance for the given model.
*
* @param \Illuminate\Database\Eloquent\Model $parent
* @return \Illuminate\Database\Eloquent\Model
*/
protected function newRelatedInstanceFor(Model $parent)
{
return $parent->{$this->relation}()->getRelated()->newInstance();
}

/**
* Get the foreign key "type" name.
*
Expand Down

0 comments on commit 9bbf644

Please sign in to comment.