Esempio n. 1
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  *
  * @return void
  */
 public function __construct(array $data = array())
 {
     $this->shipping_methods = new \Doctrine\Common\Collections\ArrayCollection();
     $this->attributes = new \Doctrine\Common\Collections\ArrayCollection();
     $this->attribute_groups = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  *
  * @return void
  */
 public function __construct(array $data = array())
 {
     $this->orders = new \Doctrine\Common\Collections\ArrayCollection();
     $this->countries = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 3
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  *
  * @return void
  */
 public function __construct(array $data = array())
 {
     $this->shipping_markups = new \Doctrine\Common\Collections\ArrayCollection();
     $this->classes = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 4
0
 /**
  * Clone
  *
  * @return \XLite\Model\AEntity
  */
 public function cloneEntity()
 {
     $newEntity = parent::cloneEntity();
     $newEntity->setAttribute($this->getAttribute());
     return $newEntity;
 }
Esempio n. 5
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  */
 public function __construct(array $data = array())
 {
     $this->permissions = new \Doctrine\Common\Collections\ArrayCollection();
     $this->profiles = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 6
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  *
  * @return void
  */
 public function __construct(array $data = array())
 {
     $this->states = new \Doctrine\Common\Collections\ArrayCollection();
     $this->regions = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 7
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  */
 public function __construct(array $data = array())
 {
     $this->cleanURLs = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 8
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  *
  * @return void
  */
 public function __construct(array $data = array())
 {
     $this->exceptions = new \Doctrine\Common\Collections\ArrayCollection();
     $this->surcharges = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 9
0
 /**
  * Constructor
  *
  * @param array $data Entity properties OPTIONAL
  *
  * @return void
  */
 public function __construct(array $data = array())
 {
     $this->settings = new \Doctrine\Common\Collections\ArrayCollection();
     $this->transactions = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct($data);
 }
Esempio n. 10
0
 /**
  * Clone for product
  *
  * @param \XLite\Model\Product $product Product
  *
  * @return \XLite\Model\AEntity
  */
 public function cloneEntityForProduct(\XLite\Model\Product $product)
 {
     $newAttachment = parent::cloneEntity();
     $newAttachment->setProduct($product);
     $product->addAttachments($newAttachment);
     $this->getStorage()->cloneEntityForAttachment($newAttachment);
     return $newAttachment;
 }