Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jul 9, 2024
1 parent fa63f9e commit 7efa028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orm/EntityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private function getSearchablePropertiesConfig(QueryBuilder $queryBuilder, Searc
$associatedEntityAlias = $associatedPropertyName = '';
for ($i = 0; $i < $numAssociatedProperties - 1; ++$i) {
$associatedEntityName = $associatedProperties[$i];
$associatedEntityAlias = Escaper::escapeDqlAlias($associatedEntityName).($i ?? '');
$associatedEntityAlias = sprintf('%s%d', Escaper::escapeDqlAlias($associatedEntityName), $i);
$associatedPropertyName = $associatedProperties[$i + 1];

if (!\in_array($associatedEntityAlias, $entitiesAlreadyJoined, true)) {
Expand Down

0 comments on commit 7efa028

Please sign in to comment.