Skip to content

Commit

Permalink
fix: strip down any sql function name
Browse files Browse the repository at this point in the history
  • Loading branch information
botjaeger committed Sep 1, 2023
1 parent 16b8111 commit ca517a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Doctrine/Orm/Util/QueryChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public static function hasOrderByOnFetchJoinedToManyAssociation(QueryBuilder $qu
foreach ($orderBy->getParts() as $part) {
if (str_contains((string) $part, '.')) {
[$alias] = explode('.', (string) $part);
$alias = str_contains($alias, '(') ? substr($alias, strpos($alias, '(') + 1) : $alias;

$orderByAliases[] = $alias;
}
Expand Down

0 comments on commit ca517a1

Please sign in to comment.