You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed NotORM_Result::fetchPairs() actually clones the result itself, modifies the query and then executes it again - losing/bypassing whatever changes were made to the original result object.
Am I wrong for considering this a buggy behaviour? The results might be truly unexpected and bugs coming out of this are really difficult to debug, since one lives under the impression that he operates on an already defined (and possibly modified) result.
Plus the fact that we already have the data fetched, so there's really no need for executing another query - again, or is there?
The text was updated successfully, but these errors were encountered:
The premise:
Code:
$pairs
:Instead of expected:
While
$array
really is:I noticed
NotORM_Result::fetchPairs()
actually clones the result itself, modifies the query and then executes it again - losing/bypassing whatever changes were made to the original result object.Am I wrong for considering this a buggy behaviour? The results might be truly unexpected and bugs coming out of this are really difficult to debug, since one lives under the impression that he operates on an already defined (and possibly modified) result.
Plus the fact that we already have the data fetched, so there's really no need for executing another query - again, or is there?
The text was updated successfully, but these errors were encountered: