setCountry() public méthode

Set country
public setCountry ( BulutYazilim\LocationBundle\Entity\Country $country = null )
$country BulutYazilim\LocationBundle\Entity\Country
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return int|null|void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $output->writeln('Creating sample institutions...');
     $getInstitutions = $this->getInstitutionsFromFile($input, $output);
     $findCountry = $this->em->getRepository('BulutYazilimLocationBundle:Country')->find($this->getContainer()->getParameter('country_id'));
     foreach ($getInstitutions as $institutionName) {
         $institutionName = trim($institutionName);
         $output->writeln($institutionName);
         $institution = new Institution();
         $institution->setName($institutionName);
         $institution->setCountry($findCountry);
         $this->em->persist($institution);
     }
     $this->em->flush();
 }