public function setProduct(Product $v = null) { if ($v === null) { $this->setId(NULL); } else { $this->setId($v->getId()); } $this->aProduct = $v; if ($v !== null) { $v->addProductI18n($this); } return $this; }