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