/** * @param Product $product The product object to add. */ protected function doAddProduct($product) { $this->collProducts[] = $product; $product->setTemplate($this); }