Exemple #1
0
 /**
  * New function needed to make the hydrator happy
  *
  * @param Collections\Collection $collection
  */
 public function addContact(Collections\Collection $collection)
 {
     foreach ($collection as $singleContact) {
         $singleContact->optIn = $this;
         $this->contact->add($singleContact);
     }
 }
 /**
  * @param Contact $contact
  */
 public function addAssociate(Contact $contact)
 {
     if (!$this->associate->contains($contact)) {
         $this->associate->add($contact);
     }
 }