From 459415f9271f954aee3311f3b4e67f4393cb5659 Mon Sep 17 00:00:00 2001 From: jpgiannetti Date: Wed, 7 Jul 2021 14:38:15 +0200 Subject: [PATCH] fix(QueryModifier): strange alias string are not interpreted as litteral string ex: 60e55fd2e7fb4_formField --- src/Service/QueryModifier/UseQuery/UseQueryFromDotNotation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/QueryModifier/UseQuery/UseQueryFromDotNotation.php b/src/Service/QueryModifier/UseQuery/UseQueryFromDotNotation.php index 72efd9e..3e62348 100644 --- a/src/Service/QueryModifier/UseQuery/UseQueryFromDotNotation.php +++ b/src/Service/QueryModifier/UseQuery/UseQueryFromDotNotation.php @@ -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;