Ejemplo n.º 1
0
 /**
  * @return \Orm\Zed\Sales\Persistence\SpySalesOrderAddress
  */
 protected function createSalesOrderAddress()
 {
     $salesOrderAddressEntity = new SpySalesOrderAddress();
     $salesOrderAddressEntity->setAddress1(1);
     $salesOrderAddressEntity->setAddress2(2);
     $salesOrderAddressEntity->setSalutation('Mr');
     $salesOrderAddressEntity->setCellPhone('123456789');
     $salesOrderAddressEntity->setCity('City');
     $salesOrderAddressEntity->setCreatedAt(new \DateTime());
     $salesOrderAddressEntity->setUpdatedAt(new \DateTime());
     $salesOrderAddressEntity->setComment('Comment');
     $salesOrderAddressEntity->setDescription('Description');
     $salesOrderAddressEntity->setCompany('Company');
     $salesOrderAddressEntity->setFirstName('FirstName');
     $salesOrderAddressEntity->setLastName('LastName');
     $salesOrderAddressEntity->setFkCountry(1);
     $salesOrderAddressEntity->setEmail('Email');
     $salesOrderAddressEntity->setZipCode(12345);
     $salesOrderAddressEntity->save();
     return $salesOrderAddressEntity;
 }