Skip to content

Commit

Permalink
Fixed columns auto joining
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaplet committed May 3, 2024
1 parent 1afa27f commit 3d6693f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collection/ReadBuilder/ReadBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function createQueryBuilder(EntityRepository $repo, string $alias): Query
->createQueryBuilder($alias)
->select($alias);

$columnNames = array_map(fn($col) => $col->getName(), $this->columns);
$columnNames = array_map(fn($col) => $col->getKey(), $this->columns);

$joins = array_merge(
$this->dbSchema->getOneToOneColumns(),
Expand Down

0 comments on commit 3d6693f

Please sign in to comment.