Skip to content

Commit

Permalink
revert unused method deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Oct 22, 2023
1 parent 2e9c7e3 commit ee5f6e0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Mixins/RelationshipsExtraMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,17 @@ public function getThroughParent(): \Closure
};
}

public function applyExtraConditions(): \Closure
/**
* Get the farParent for the HasManyThrough relationship.
*/
public function getFarParent()
{
return function () {
return $this->farParent;
};
}

public function applyExtraConditions()
{
return function (PowerJoinClause $join) {
foreach ($this->getQuery()->getQuery()->wheres as $condition) {
Expand Down

0 comments on commit ee5f6e0

Please sign in to comment.