Similar to this question, I had some problems with how the doctrine caches / moistens the relationships of the result of my query.
Now I know that I can fix the problem by calling refresh / refreshRelated, but is there a way to disable the hydration cache for the / temporary table? Especially when using joins in select, so that the example code becomes:
$result2 = Doctrine_Query::create() ->leftJoin('s.School sc') ->from('Student s') ->execute();
you really want Doctrine to use the data from your connection instead of using the cached hydrated result from the previous selection.
Is there any way to do this?
Thanks in advance!
source share