Permalink
Browse files

Execute query as normal from inside single query

  • Loading branch information...
1 parent 45810f8 commit 87452afd8d5341e706e8b57915212f0a37d53d2e @vrana committed Feb 24, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 NotORM/Result.php
View
@@ -715,6 +715,7 @@ function offsetExists($key) {
function offsetGet($key) {
if ($this->single && !isset($this->data)) {
$clone = clone $this;
+ $clone->single = false; // execute as normal query
if (is_array($key)) {
$clone->where($key)->limit(1);
} else {

0 comments on commit 87452af

Please sign in to comment.