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