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

Commit 1466046

Browse files
authored
Merge pull request #310 from kadivadavidak/master
Fix morphTo to correspond to Laravel 5.6
2 parents da46877 + 980c83b commit 1466046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ardent/Ardent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public function belongsTo($related, $foreignKey = NULL, $otherKey = NULL, $relat
448448
* @param string $id
449449
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
450450
*/
451-
public function morphTo($name = null, $type = null, $id = null) {
451+
public function morphTo($name = null, $type = null, $id = null, $ownerKey = null) {
452452
// If no name is provided, we will use the backtrace to get the function name
453453
// since that is most likely the name of the polymorphic interface. We can
454454
// use that to get both the class and foreign key that will be utilized.

0 commit comments

Comments
 (0)