Skip to content

Commit 459415f

Browse files
fix(QueryModifier): strange alias string are not interpreted as litteral string
ex: 60e55fd2e7fb4_formField
1 parent c2214f9 commit 459415f

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)