Skip to content

Commit

Permalink
Merge pull request #81 from jpgiannetti-eukles/master
Browse files Browse the repository at this point in the history
fix(QueryModifier): strange alias string are not interpreted as litteral string
  • Loading branch information
wollanup authored Jul 7, 2021
2 parents c2214f9 + 459415f commit 079a039
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function useQuery($alias = null, $joinType = null): ModelCriteria
$path = implode(self::RELATION_SEP, $this->map);
throw new RelationNotFoundException("Relation \"$relation\" Not Found in \"$path\"");
}
$this->query = call_user_func([$this->query, $method], $alias . "_" . $relation, $joinType);
$this->query = call_user_func([$this->query, $method], "`" . $alias . "_" . $relation . "`", $joinType);
}
}
$this->inUse = true;
Expand Down

0 comments on commit 079a039

Please sign in to comment.