notorm icon indicating copy to clipboard operation
notorm copied to clipboard

fetch() broken for NotORM_MultiResult if being called multiple times on different instances

Open itsnotvalid opened this issue 11 years ago • 0 comments

The problem is that, when I try to fetch content from a NotORM_MultiResult, there could be problems for repeated fetching. For example,

$owner = $db->owner[1]; $items1 = $owner->item(); $item1 = $items->fetch(); $items2 = $owner->item(); $item2 = $items->fetch(); Here count($items1) is 1. What I was expecting (as with NotORM_Result) is that I would have something meaningful for $item1 and $item2, but apparently $items1 and $items2 shares the same pile of data such that $item2 would false.

itsnotvalid avatar Mar 22 '13 04:03 itsnotvalid