diff --git a/src/macros/joinRelation.php b/src/macros/joinRelation.php index 21fb572..30fd22f 100644 --- a/src/macros/joinRelation.php +++ b/src/macros/joinRelation.php @@ -7,7 +7,7 @@ return $this->join( $relation->getRelated()->getTable(), - $relation->getQualifiedForeignKey(), + $relation->getQualifiedForeignKeyName(), $operator, $relation->getQualifiedOwnerKeyName() ); diff --git a/src/macros/leftJoinRelation.php b/src/macros/leftJoinRelation.php index 593b5b0..7456f3a 100644 --- a/src/macros/leftJoinRelation.php +++ b/src/macros/leftJoinRelation.php @@ -7,7 +7,7 @@ return $this->leftJoin( $relation->getRelated()->getTable(), - $relation->getQualifiedForeignKey(), + $relation->getQualifiedForeignKeyName(), $operator, $relation->getQualifiedOwnerKeyName() );