예제 #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
파일: Method.php 프로젝트: kewaunited/xcart
 /**
  * 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
파일: Role.php 프로젝트: kirkbauer2/kirkxc
 /**
  * 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;
 }