示例#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
文件: Option.php 项目: kingsj/core
 /**
  * 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
文件: Method.php 项目: kingsj/core
 /**
  * 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;
 }