/** * @param \Saxulum\Entity\Product $one * @param bool $stopPropagation * @return $this */ public function setOne(\Saxulum\Entity\Product $one = null, $stopPropagation = false) { if (!$stopPropagation) { if (null !== $this->one) { $this->one->removeMany($this, true); } if (null !== $one) { $one->addMany($this, true); } } $this->one = $one; return $this; }