Doctrine 2 - ORM

ArrayHydrator::updateResultPointer() must be an array, string given