Doctrine query using Native SQL always returning empty array
问题 I create a service with methods that run some queries, i want to use doctrine Native SQL but no matter which query i made it always return an empty array. There is something that i'm missing? Method from service MonthVacancySchedule: public function getTotalVacanciesByUnits() { $rsm = new ResultSetMapping(); $sql = 'SELECT nome_procedimento FROM programacao'; $query = $this->emi->createNativeQuery($sql, $rsm); $units = $query->getResult(); return $units; } The controller which i use the