Skip to content

Commit

Permalink
Merge pull request #9 from dallincoons/dallincoons/bugfix
Browse files Browse the repository at this point in the history
fix bug where variables are being nulled out
  • Loading branch information
calebporzio authored Jun 29, 2018
2 parents fa2842e + 231afbe commit fc1393a
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 fc1393a

Please sign in to comment.