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