/** * @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; }
/** * Remove assignedAccount * * @param \Enigmatic\CRMBundle\Entity\AccountOwner $assignedAccount */ public function removeAssignedAccount(\Enigmatic\CRMBundle\Entity\AccountOwner $assignedAccount) { $this->assignedAccount->removeElement($assignedAccount); }
/** * Remove owners * * @param \Enigmatic\CRMBundle\Entity\AccountOwner $owners */ public function removeOwner(\Enigmatic\CRMBundle\Entity\AccountOwner $owners) { $this->owners->removeElement($owners); }