[DDC-1492] Fatall error: Cannot use object as array in ORM\Internal\Hydration\ObjectHydrator.php on line 314 Created: 13/Nov/11 Updated: 15/Nov/11 Resolved: 15/Nov/11
|Project:||Doctrine 2 - ORM|
Symfony2, Doctrine 2.1.1 (also bug present on 2.1.3-dev - latest revison of 2.1.x branch)
area - STI: District/City/Region/Country/etc.
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.
|Comment by Benjamin Eberlei [ 13/Nov/11 ]|
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).
|Comment by Konstantin [ 13/Nov/11 ]|
Sorry, line was changed cause I've updated to 2.1.3-dev.
|Comment by Guilherme Blanco [ 14/Nov/11 ]|
If you change this line:
Does it work for you?
|Comment by Konstantin [ 14/Nov/11 ]|
yes, with this line of code this query works.
|Comment by Guilherme Blanco [ 15/Nov/11 ]|
This issue was fixed in master.