/**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $userBeheer = new User();
     $userBeheer->setEmail('*****@*****.**');
     $userBeheer->setPlainPassword('buurtpreventie');
     $userBeheer->setRealName('Beheerder');
     $userBeheer->setEnabled(true);
     $groups = new ArrayCollection();
     $groups->add($manager->merge($this->getReference('group-beheer')));
     $userBeheer->setGroups($groups);
     $manager->persist($userBeheer);
     $manager->flush();
     $this->addReference('user-beheer', $userBeheer);
 }
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $userBeheer = new User();
     $userBeheer->setEmail('*****@*****.**');
     $userBeheer->setPlainPassword('test');
     $userBeheer->setRealName('Bert Beheer');
     $userBeheer->setAddress('Plein 3');
     $userBeheer->setPhone('06-11111111');
     $userBeheer->setEnabled(true);
     $groups = new ArrayCollection();
     $groups->add($manager->merge($this->getReference('group-beheer')));
     $userBeheer->setGroups($groups);
     $manager->persist($userBeheer);
     $manager->flush();
     $this->addReference('user-beheer', $userBeheer);
     $userCoordinator = new User();
     $userCoordinator->setEmail('*****@*****.**');
     $userCoordinator->setPlainPassword('test');
     $userCoordinator->setRealName('Cees Coördinator');
     $userCoordinator->setAddress('Straat 2a');
     $userCoordinator->setPhone('040-1111111');
     $userCoordinator->setEnabled(true);
     $groups = new ArrayCollection();
     $groups->add($manager->merge($this->getReference('group-coordinator')));
     $userCoordinator->setGroups($groups);
     $manager->persist($userCoordinator);
     $manager->flush();
     $this->addReference('user-coordinator', $userCoordinator);
     $userLoper1 = new User();
     $userLoper1->setEmail('*****@*****.**');
     $userLoper1->setPlainPassword('test');
     $userLoper1->setRealName('Leopold Loper');
     $userLoper1->setAddress('Laan 11');
     $userLoper1->setPhone('040-2222222');
     $userLoper1->setCredit(true);
     $userLoper1->setEnabled(true);
     $groups = new ArrayCollection();
     $groups->add($manager->merge($this->getReference('group-loper')));
     $userLoper1->setGroups($groups);
     $manager->persist($userLoper1);
     $manager->flush();
     $this->addReference('user-loper-1', $userLoper1);
     $userLoper2 = new User();
     $userLoper2->setEmail('*****@*****.**');
     $userLoper2->setPlainPassword('test');
     $userLoper2->setRealName('Sonja Struin');
     $userLoper2->setAddress('Hoofdbaan 123b');
     $userLoper2->setEnabled(true);
     $groups = new ArrayCollection();
     $groups->add($manager->merge($this->getReference('group-loper')));
     $userLoper2->setGroups($groups);
     $manager->persist($userLoper2);
     $manager->flush();
     $this->addReference('user-loper-2', $userLoper2);
     $userLoper3 = new User();
     $userLoper3->setEmail('*****@*****.**');
     $userLoper3->setPlainPassword('test');
     $userLoper3->setRealName('Willie Wandel');
     $userLoper3->setPhone('040-3333333');
     $userLoper3->setCredit(true);
     $userLoper3->setEnabled(true);
     $groups = new ArrayCollection();
     $groups->add($manager->merge($this->getReference('group-loper')));
     $userLoper3->setGroups($groups);
     $manager->persist($userLoper3);
     $manager->flush();
     $this->addReference('user-loper-3', $userLoper3);
 }