Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Difference between results of getArrayResult() and execute()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gonzo  
View profile  
 More options Sep 22 2012, 8:44 am
From: gonzo <fis...@gmail.com>
Date: Sat, 22 Sep 2012 05:44:37 -0700 (PDT)
Local: Sat, Sep 22 2012 8:44 am
Subject: Difference between results of getArrayResult() and execute()

I have a DQL that is executed multiple times with different parameters.

On the second (and subsequent) run, there is a difference between the
results returned by getArrayResult() and execute() - it seems that there is
some kind of caching in place so that the result of execute is the same
every time (despite the parameters being different).

I have checked that the caching part of AbstractQuery:execute is not
matched
(e.g. https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Ab...)
does not hit.

Can anyone explain?

The code I've used to demonstrate the issue is:

That displays e.g. the following:

As you see the second line of each segment remains the same, whereas the
first line (array hydration) is correct.

Thanks in advance :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gonzo  
View profile  
 More options Oct 8 2012, 4:24 pm
From: gonzo <fis...@gmail.com>
Date: Mon, 8 Oct 2012 13:24:49 -0700 (PDT)
Local: Mon, Oct 8 2012 4:24 pm
Subject: Re: Difference between results of getArrayResult() and execute()

Bump. Any ideas?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »