Skip to content

Commit

Permalink
nullable proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed May 27, 2019
1 parent 862f325 commit d3d298a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Promise/PromiseMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public function __resolve()
if ($this->query === []) {
// nothing to proxy to
$this->orm = null;
return null;

return [];
}

foreach ($this->orm->getRepository($this->target)->findAll($this->query + $this->where) as $item) {
Expand Down

0 comments on commit d3d298a

Please sign in to comment.