public function setProduct(Product $product) { $this->setProductId($product->getProductId()); $this->product = $product; return $this; }