Doctrine 2 - ORM

Fatall error: Cannot use object as array in ORM\Internal\Hydration\ObjectHydrator.php on line 314