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

Commit

Permalink
Adding support for HasManyThrough::localKey
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsantos07 committed Nov 30, 2015
1 parent f6ad904 commit 678dd2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ardent/Ardent.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ protected function handleRelationalArray($relationName) {
return $this->$relationType($relation[1], $relation['foreignKey'], $relation['localKey']);

case self::HAS_MANY_THROUGH:
$verifyArgs(['firstKey', 'secondKey'], ['through']);
return $this->$relationType($relation[1], $relation['through'], $relation['firstKey'], $relation['secondKey']);
$verifyArgs(['firstKey', 'secondKey', 'localKey'], ['through']);
return $this->$relationType($relation[1], $relation['through'], $relation['firstKey'], $relation['secondKey'], $relation['localKey']);

case self::BELONGS_TO:
$verifyArgs(['foreignKey', 'otherKey', 'relation']);
Expand Down

0 comments on commit 678dd2e

Please sign in to comment.