/**
  * @param Account $account
  *
  * @return PaymentTerm
  */
 public function removeAccount(Account $account)
 {
     if ($this->accounts->contains($account)) {
         $this->accounts->removeElement($account);
     }
     return $this;
 }
Example #2
0
 /**
  * @param Account $child
  *
  * @return bool
  */
 protected function hasChild(Account $child)
 {
     return $this->children->contains($child);
 }
Example #3
0
 /**
  * @param Account $account
  *
  * @return $this
  */
 public function removeDefaultInAccount(Account $account)
 {
     $this->defaultInAccounts->removeElement($account);
     if ($account->getDefaultContact() === $this) {
         $account->setDefaultContact(null);
     }
     return $this;
 }