Skip to content

Commit ee5f6e0

Browse files
committed
revert unused method deletion
1 parent 2e9c7e3 commit ee5f6e0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Mixins/RelationshipsExtraMethods.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,17 @@ public function getThroughParent(): \Closure
416416
};
417417
}
418418

419-
public function applyExtraConditions(): \Closure
419+
/**
420+
* Get the farParent for the HasManyThrough relationship.
421+
*/
422+
public function getFarParent()
423+
{
424+
return function () {
425+
return $this->farParent;
426+
};
427+
}
428+
429+
public function applyExtraConditions()
420430
{
421431
return function (PowerJoinClause $join) {
422432
foreach ($this->getQuery()->getQuery()->wheres as $condition) {

0 commit comments

Comments
 (0)