Skip to content

Commit

Permalink
bug fix on association mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
leedavis81 committed Mar 27, 2017
1 parent 69cfb2e commit a5dd342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drest/Service/Action/AbstractAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function registerExpose(
}

// Process relational field with no deeper expose restrictions
foreach ($this->getFilteredAssociations($fields, $classMetaData, 'association') as $relationalField) {
foreach ($this->getFilteredAssociations($fields, $classMetaData, 'associations') as $relationalField) {
$alias = self::getAlias($ormAssociationMappings[$relationalField]['targetEntity'], $relationalField);
$qb->leftJoin($rootAlias . '.' . $relationalField, $alias);
$qb->addSelect($alias);
Expand Down

0 comments on commit a5dd342

Please sign in to comment.