Beispiel #1
0
 /**
  * @param AccountOwner $account_owner
  * @param bool $flush
  * @return AccountOwner
  */
 public function end(AccountOwner $account_owner, $flush = true)
 {
     $account_owner->setEnd(new AccountOwnerEnd($account_owner));
     $this->em->persist($account_owner);
     if ($flush) {
         $this->em->flush();
     }
     return $account_owner;
 }
Beispiel #2
0
 /**
  * Remove assignedAccount
  *
  * @param \Enigmatic\CRMBundle\Entity\AccountOwner $assignedAccount
  */
 public function removeAssignedAccount(\Enigmatic\CRMBundle\Entity\AccountOwner $assignedAccount)
 {
     $this->assignedAccount->removeElement($assignedAccount);
 }
Beispiel #3
0
 /**
  * Remove owners
  *
  * @param \Enigmatic\CRMBundle\Entity\AccountOwner $owners
  */
 public function removeOwner(\Enigmatic\CRMBundle\Entity\AccountOwner $owners)
 {
     $this->owners->removeElement($owners);
 }