/** * * @param Institution $institution * @param InstitutionMedicalCenter $institutionMedicalCenter * @param unknown_type $propertyTypeName * @return InstitutionMedicalCenterPropertyCustomFormType */ public function buildFormByInstitutionMedicalCenterPropertyTypeName(Institution $institution, InstitutionMedicalCenter $center, $propertyTypeName) { $imcProperty = $this->imcPropertyService->createInstitutionMedicalCenterPropertyByName($propertyTypeName, $institution, $center); $formType = new InstitutionMedicalCenterPropertyCustomFormType(); return $this->formFactory->create($formType, $imcProperty); }