Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Execute query as normal from inside single query

  • Loading branch information...
commit 87452afd8d5341e706e8b57915212f0a37d53d2e 1 parent 45810f8
@vrana authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  NotORM/Result.php
View
1  NotORM/Result.php
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.