/**
  * @return Customer
  */
 public function setDataToObject()
 {
     $this->object->setLastname($this->getFormattedData('lastname', 'string'));
     $this->object->setFirstname($this->getFormattedData('firstname', 'string'));
     $this->object->setEmail($this->getFormattedData('email', 'string'));
     $this->object->setCustomerGroup($this->getFormattedData('customerGroup', 'string'));
     $this->object->setCompany($this->getFormattedData('company', 'string'));
     $this->object->setCity($this->getFormattedData('city', 'string'));
     $this->object->setCountry($this->getFormattedData('country', 'string'));
     $this->object->setRegistrationDate($this->getFormattedData('registrationDate', 'date'));
     parent::setDataToObject();
 }
 /**
  * {@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();
 }