Skip to content

Commit

Permalink
Fixing a couple other issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 31, 2015
1 parent 9bb3b4c commit 81278bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ORM/Association/SelectableAssociationTrait.php
Expand Up @@ -295,7 +295,8 @@ protected function _resultInjector($fetchQuery, $resultMap, $options)

$sourceKeys = [];
foreach ((array)$keys as $key) {
$sourceKeys[] = key($fetchQuery->aliasField($key, $sAlias));
$f = $fetchQuery->aliasField($key, $sAlias);
$sourceKeys[] = key($f);
}

$nestKey = $options['nestKey'];
Expand Down
1 change: 1 addition & 0 deletions src/ORM/Table.php
Expand Up @@ -1814,6 +1814,7 @@ protected function _dynamicFinder($method, $args)
);
}

$conditions = [];
if ($hasOr === false && $hasAnd === false) {
$conditions = $makeConditions([$fields], $args);
} elseif ($hasOr !== false) {
Expand Down

0 comments on commit 81278bd

Please sign in to comment.