Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.0
-
Fix Version/s: None
-
Component/s: Caching
-
Labels:None
Description
1) I have a Query with APC useResultCache with leftJoin between User and Avatar. (With no avatar for this User).
2) I have au Query without APC useResultCache with leftJoin between Gallery, User and Avatar (Same user than 1))
On the first show of my page => OK
On second show of my page (With APC Cache) error when i call user->getGalleries() :
In Hydrator/RecordDriver.php setLastElement()
$coll is instanceOf Doctrine_Null and count($coll) return 1, so => Crash because ->getLast doesn't exist in Doctrine_Null class
If you add in setLastElement() (Before if (count($coll) > 0) ....
if ($coll instanceOf Doctrine_Null)
{ return; }It's works.