Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #4
0
 /**
  * Clone
  *
  * @return \XLite\Model\AEntity
  */
 public function cloneEntity()
 {
     $newEntity = parent::cloneEntity();
     $newEntity->setAttribute($this->getAttribute());
     return $newEntity;
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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;
 }