Skip to content

Commit

Permalink
Fixed more failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 3, 2014
1 parent 55c3eb4 commit db1a7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ORM/ResultSet.php
Expand Up @@ -310,9 +310,9 @@ protected function _calculateAssociationMap() {
'instance' => $meta['instance'],
'canBeJoined' => $meta['canBeJoined'],
'entityClass' => $meta['instance']->target()->entityClass(),
'nestKey' => $meta['aliasPath']
'nestKey' => $meta['canBeJoined'] ? $assoc : $meta['aliasPath']
];
if (!empty($meta['associations'])) {
if ($meta['canBeJoined'] && !empty($meta['associations'])) {
$visitor($meta['associations']);
}
}
Expand Down

0 comments on commit db1a7d5

Please sign in to comment.