/**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $this->manager = $manager;
     $nationalities = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findAll();
     $maxNationalitiesId = $this->getMaxId('BuddySystemMembersBundle:Nationality');
     $admin = new User();
     $admin->setRoles(array('ROLE_ADMIN'));
     $admin->setEnabled(true);
     $admin->setUsername('admin');
     $admin->setPassword('admin');
     $admin->setPrenom("Admin");
     $admin->setNom("Admin");
     $admin->setSexe('m');
     $admin->setDob($this->getRandomDatetime());
     $admin->setSexewanted('f');
     $admin->setEmail("*****@*****.**");
     $admin->setPlainPassword("admin");
     $admin->setSection($this->getLilleSection());
     $admin->setTel($this->getRandomPhoneNumber());
     $admin->setConditionGenerale(true);
     $admin->setNationalityOsef(true);
     $nationalite = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite->addUser($admin);
     $nationalite_voulu = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite_voulu->addUserWanted($admin);
     $manager->persist($admin);
     $manager->flush();
     $buddycoordinator = new User();
     $buddycoordinator->setRoles(array('ROLE_BUDDYCOORDINATOR'));
     $buddycoordinator->setEnabled(true);
     $buddycoordinator->setUsername('buddycoordinator');
     $buddycoordinator->setPassword('buddycoordinator');
     $buddycoordinator->setPrenom("Buddycoordinator");
     $buddycoordinator->setNom("Buddycoordinator");
     $buddycoordinator->setSexe('m');
     $buddycoordinator->setDob($this->getRandomDatetime());
     $buddycoordinator->setSexewanted('f');
     $buddycoordinator->setEmail("*****@*****.**");
     $buddycoordinator->setPlainPassword("buddycoordinator");
     $buddycoordinator->setSection($this->getLilleSection());
     $buddycoordinator->setTel($this->getRandomPhoneNumber());
     $buddycoordinator->setConditionGenerale(true);
     $buddycoordinator->setNationalityOsef(true);
     $nationalite = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite->addUser($buddycoordinator);
     $nationalite_voulu = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite_voulu->addUserWanted($buddycoordinator);
     $manager->persist($buddycoordinator);
     $manager->flush();
     $user = new User();
     $user->setRoles(array('ROLE_USER'));
     $user->setEnabled(true);
     $user->setUsername('buddy');
     $user->setPassword('buddy');
     $user->setPrenom("Buddy");
     $user->setNom("Buddy");
     $user->setSection($this->getLilleSection());
     $user->setSexe('m');
     $user->setDob($this->getRandomDatetime());
     $user->setSexewanted('f');
     $user->setEmail("*****@*****.**");
     $user->setPlainPassword("buddy");
     $user->setTel($this->getRandomPhoneNumber());
     $user->setConditionGenerale(true);
     $user->setNationalityOsef(true);
     $nationalite = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite->addUser($user);
     $nationalite_voulu = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite_voulu->addUserWanted($user);
     $manager->persist($user);
     $manager->flush();
     $user = new User();
     $user->setRoles(array('ROLE_USER'));
     $user->setEnabled(true);
     $user->setUsername('local');
     $user->setPassword('local');
     $user->setPrenom("Local");
     $user->setNom("Local");
     $user->setSection($this->getLilleSection());
     $user->setSexe('m');
     $user->setDob($this->getRandomDatetime());
     $user->setSexewanted('f');
     $user->setEmail("*****@*****.**");
     $user->setPlainPassword("local");
     $user->setTel($this->getRandomPhoneNumber());
     $user->setConditionGenerale(true);
     $user->setNationalityOsef(true);
     $nationalite = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite->addUser($user);
     $nationalite_voulu = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite_voulu->addUserWanted($user);
     $manager->persist($user);
     $manager->flush();
     $translator = new User();
     $translator->setRoles(array('ROLE_TRANSLATOR'));
     $translator->setEnabled(true);
     $translator->setUsername('translator');
     $translator->setPassword('translator');
     $translator->setPrenom("Translator");
     $translator->setSection($this->getLilleSection());
     $translator->setNom("Translator");
     $translator->setSexe('m');
     $translator->setDob($this->getRandomDatetime());
     $translator->setSexewanted('f');
     $translator->setEmail("*****@*****.**");
     $translator->setPlainPassword("translator");
     $translator->setTel($this->getRandomPhoneNumber());
     $translator->setConditionGenerale(true);
     $translator->setNationalityOsef(true);
     $nationalite = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite->addUser($translator);
     $nationalite_voulu = $manager->getRepository('BuddySystemMembersBundle:Nationality')->findOneBy(array("id" => rand($maxNationalitiesId - count($nationalities) + 1, $maxNationalitiesId)));
     $nationalite_voulu->addUserWanted($translator);
     $manager->persist($translator);
     $manager->flush();
 }