Skip to content

Commit

Permalink
Fix concatenation with morph relationship and alias
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed May 25, 2024
1 parent 78b60f7 commit d9651c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eloquent/Traits/ConcatenatesNativeRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function hasOneOrManyDeepFromMorphOneOrMany(
array $foreignKeys,
array $localKeys
) {
$foreignKeys[] = [$relation->getQualifiedMorphType(), $relation->getForeignKeyName()];
$foreignKeys[] = [$relation->getMorphType(), $relation->getForeignKeyName()];

$localKeys[] = $relation->getLocalKeyName();

Expand Down

0 comments on commit d9651c2

Please sign in to comment.