/** * Constructor */ public function __construct(array $data = null) { parent::__construct($data); $this->orders = new \Doctrine\Common\Collections\ArrayCollection(); }
public function __construct($data) { parent::__construct($data); $this->setTsAdd(time()); $this->setTsMod(time()); }