/** * Remove child * * @param Customer $child * @return Customer */ public function removeChild(Customer $child) { if ($this->hasChild($child)) { $child->setParent(null); $this->children->removeElement($child); } return $this; }
/** * Remove customer * * @param Customer $customer */ public function removeCustomer(Customer $customer) { if ($this->customers->contains($customer)) { $this->customers->removeElement($customer); } }