/** * 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); }
/** * 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); }
/** * 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); }
/** * Clone * * @return \XLite\Model\AEntity */ public function cloneEntity() { $newEntity = parent::cloneEntity(); $newEntity->setAttribute($this->getAttribute()); return $newEntity; }
/** * 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); }
/** * 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); }
/** * Constructor * * @param array $data Entity properties OPTIONAL */ public function __construct(array $data = array()) { $this->cleanURLs = new \Doctrine\Common\Collections\ArrayCollection(); parent::__construct($data); }
/** * 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); }
/** * 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); }
/** * 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; }