Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Oct 6, 2024
1 parent dcf545e commit b478687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Eloquent/Relations/Traits/HasExistenceQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public function getRelationExistenceQueryForSelfRelation(Builder $query, Builder

$query->getModel()->setTable($hash);

/** @var string $from */
$from = $query->getQuery()->from;
/** @var string $parentFrom */
$parentFrom = $parentQuery->getQuery()->from;

$query->select($columns)->whereColumn(
"$from.$this->localKey",
"$parentFrom.$this->localKey",
'=',
$this->getQualifiedFirstKeyName()
);
Expand Down

0 comments on commit b478687

Please sign in to comment.