Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(QueryBuilderAdapter): use generated field names for our boundary fields in the select statement, avoids conflict with other fields in the query. #59

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

# 0.9.1

* fix(`QueryBuilderAdapter`): use generated field names for our boundary fields
in the select statement, avoids conflict with other fields in the query.

# 0.9.0

* build: Symfony 7.1 compatibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ private function getQueryBuilder(
$queryBuilder->andWhere($queryBuilder->expr()->andX(...$expressions));
}

// adds the boundary values to the query
// adds the boundary values to the select statement

$i = 1;
foreach ($this->getBoundaryFieldNames() as $field) {
$queryBuilder->addSelect($field);
$queryBuilder->addSelect(sprintf('%s AS rekapager_boundary_%s', $field, $i));
$i++;
}

return $queryBuilder;
Expand Down
Loading