public function getAllLanguages($order = 'asc') { $qb = $this->createQueryBuilder('l'); return $qb->orderBy('l.name', $order)->getQuery(); }