/** * Remove profilesToRead * * @param \Calculus\UserBundle\Entity\Profile $profilesToRead */ public function removeProfilesToRead(\Calculus\UserBundle\Entity\Profile $profilesToRead) { $this->profiles_to_read->removeElement($profilesToRead); }
/** * @param Contact $contact */ public function addAssociate(Contact $contact) { if (!$this->associate->contains($contact)) { $this->associate->add($contact); } }
/** * @param Contact $contact */ public function removeAssociate(Contact $contact) { $this->associate->removeElement($contact); }
/** * New function needed to make the hydrator happy * * @param Collections\Collection $communityCollection */ public function removeCommunity(Collections\Collection $communityCollection) { foreach ($communityCollection as $single) { $this->community->removeElement($single); } }
/** * @return \Project\Entity\Result\Object */ public function getObject() { if ($this->object->count() > 0) { return $this->object[0]; } return $this->object; }