Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.1.1
-
Fix Version/s: 2.2
-
Component/s: None
-
Security Level: All
-
Labels:None
-
Environment:Symfony2, Doctrine 2.1.1 (also bug present on 2.1.3-dev - latest revison of 2.1.x branch)
Description
My entities
event
eveht.event_area_id=event_area.id (1:1)
event_area.event_id=event.id (1:1)
event_area.area.id=area.id (one area has many event_area's)
area.parent_id=area_id (hierarchial)
event.author_id=user.id (one user has many events)
area - STI: District/City/Region/Country/etc.
SELECT r, ra, a, ap, au, DATE(r.eventTime) AS event_date FROM OloloEventsBundle:Event r LEFT JOIN r.eventArea ra LEFT JOIN ra.area a LEFT JOIN a.parent ap INNER JOIN r.author au WHERE r.eventTime <= :r_eventtime AND ra.area IN(:ra_area) GROUP BY r ORDER BY event_date DESC
This DQL caused an error "Cannot use object of type District as array in ORM\Internal\Hydration\ObjectHydrator.php on line 314". When I'm removing `ap` friom fetching - it works. Mapping are correct - there are many other places where it works correctly.
On 2.1.1 line 314 is a "}". Can you restate the line and add a stack trace if possible (xdebug or phpunit can help there).