Beispiel #1
0
 /**
  * Remove profilesToRead
  *
  * @param \Calculus\UserBundle\Entity\Profile $profilesToRead
  */
 public function removeProfilesToRead(\Calculus\UserBundle\Entity\Profile $profilesToRead)
 {
     $this->profiles_to_read->removeElement($profilesToRead);
 }
Beispiel #2
0
 /**
  * @param Contact $contact
  */
 public function addAssociate(Contact $contact)
 {
     if (!$this->associate->contains($contact)) {
         $this->associate->add($contact);
     }
 }
Beispiel #3
0
 /**
  * @param Contact $contact
  */
 public function removeAssociate(Contact $contact)
 {
     $this->associate->removeElement($contact);
 }
Beispiel #4
0
 /**
  * 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);
     }
 }
Beispiel #5
0
 /**
  * @return \Project\Entity\Result\Object
  */
 public function getObject()
 {
     if ($this->object->count() > 0) {
         return $this->object[0];
     }
     return $this->object;
 }