Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #310 from kadivadavidak/master
Browse files Browse the repository at this point in the history
Fix morphTo to correspond to Laravel 5.6
  • Loading branch information
igorsantos07 authored Oct 3, 2018
2 parents da46877 + 980c83b commit 1466046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ardent/Ardent.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function belongsTo($related, $foreignKey = NULL, $otherKey = NULL, $relat
* @param string $id
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function morphTo($name = null, $type = null, $id = null) {
public function morphTo($name = null, $type = null, $id = null, $ownerKey = null) {
// If no name is provided, we will use the backtrace to get the function name
// since that is most likely the name of the polymorphic interface. We can
// use that to get both the class and foreign key that will be utilized.
Expand Down

0 comments on commit 1466046

Please sign in to comment.