Esempio n. 1
0
 /**
  * @param $region
  * @param $country
  *
  * @return MagentoAddress
  */
 protected function createMagentoAddress($region, $country)
 {
     $address = new MagentoAddress();
     $address->setRegion($region);
     $address->setCountry($country);
     $address->setCity('City');
     $address->setStreet('street');
     $address->setPostalCode(123456);
     $address->setFirstName('John');
     $address->setLastName('Doe');
     $address->setLabel('label');
     $address->setPrimary(true);
     $address->setOrganization('oro');
     $address->setOriginId(1);
     $address->setOrganization($this->organization);
     $this->em->persist($address);
     return $address;
 }