/**
  *
  */
 public function load(ObjectManager $manager)
 {
     foreach ($this->offers as $offerName => $offerDescription) {
         $offer = new Offer();
         $offer->setName($offerName);
         $offer->setDescription($offerDescription);
         $applicants = $manager->getRepository('RscineWorkerBundle:Worker')->findAll();
         foreach ($applicants as $applicant) {
             $offer->addApplicant($applicant);
             $manager->persist($applicant);
         }
         $creator = $manager->getRepository('RscineUserBundle:User')->findOneByUsername('Eirika');
         $offer->setCreator($creator);
         $handler = $manager->getRepository('RscineWorkerBundle:Worker')->findOneByUsername('Cormag');
         $offer->setHandler($handler);
         $manager->persist($creator);
         $manager->persist($handler);
         $manager->persist($offer);
     }
     $manager->flush();
 }