public function updateByName($name) { $developer = $this->developerRepository->findOneByName($name); if ($developer) { $this->githubDeveloper->update($developer); $this->updateDeveloperOrganizations($developer); $this->entityManager->flush(); } }