Similarly to this question, I got some problems with how doctrine caches/hydrates the relations of the result of my query.
Now I know I can fix the issue by calling refresh/refreshRelated, but is there a way to disable the hydration cache for a table/temporarily? Especially when using joins in the select such 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 join instead of using the cached hydrated result from the previous select.
Is there a way of doing this?
Thanks in advance!