Skip to content

Commit

Permalink
fix bug where variables are being nulled out
Browse files Browse the repository at this point in the history
  • Loading branch information
Dallin committed Jun 28, 2018
1 parent fa2842e commit 231afbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReturnsChildModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function belongsTo($related, $foreignKey = null, $ownerKey = null, $relat

public function hasMany($related, $foreignKey = null, $localKey = null)
{
return parent::hasMany($related, $foreignKey = null, $localKey = null);
return parent::hasMany($related, $foreignKey, $localKey);
}

public function belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null)
Expand Down

0 comments on commit 231afbe

Please sign in to comment.