Skip to content

Commit 079a039

Browse files
authored
Merge pull request #81 from jpgiannetti-eukles/master
fix(QueryModifier): strange alias string are not interpreted as litteral string
2 parents c2214f9 + 459415f commit 079a039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/QueryModifier/UseQuery/UseQueryFromDotNotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function useQuery($alias = null, $joinType = null): ModelCriteria
132132
$path = implode(self::RELATION_SEP, $this->map);
133133
throw new RelationNotFoundException("Relation \"$relation\" Not Found in \"$path\"");
134134
}
135-
$this->query = call_user_func([$this->query, $method], $alias . "_" . $relation, $joinType);
135+
$this->query = call_user_func([$this->query, $method], "`" . $alias . "_" . $relation . "`", $joinType);
136136
}
137137
}
138138
$this->inUse = true;

0 commit comments

Comments
 (0)