findAll() as $type) { $result[$type->getId()] = $type->getName(); } return $result; } }