public function addPackage(PackageInterface $package) { $package->setProduct($this); $this->packages->add($package); }