コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $customer = new Customer();
     $customer->setFirstname("Bampis");
     $customer->setSurname("Sykovaridis");
     $customer->setBirthday(new \DateTime());
     $customer->setCity("Serres");
     $customer->setAddress("Ritsou");
     $customer->setEmail("*****@*****.**");
     $customer->setPhone("2323232");
     $customer->setCountry("Greece");
     $manager->persist($customer);
     $manager->flush();
 }