/**
  * @Given /^I add new file to the event with name "([^"]*)" in "([^"]*)" locale$/
  */
 public function iAddNewFileToTheNewsWithNameInLocale($eventName, $locale)
 {
     $manager = $this->getDoctrineManager();
     $eventTranslation = $manager->getRepository('FSi\\FixturesBundle\\Entity\\EventTranslation')->findOneBy(array('name' => $eventName, 'locale' => $locale));
     $file = new File();
     $file->setFile(new \SplFileInfo(__DIR__ . '/../../features/fixtures/test_file.txt'));
     $file->setEventTranslation($eventTranslation);
     $manager->persist($file);
     $manager->flush();
 }