Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Set persons
- *
- * @param array $persons
- * @return Contact
- */
- public function setPersons($persons)
- {
- $this->persons = $persons;
- foreach ($this->persons as $p) $p->setContact($this);
- return $this;
- }
- /**
- * Get persons
- *
- * @return array
- */
- public function getPersons()
- {
- return $this->persons;
- }
- /**
- * Add persons
- *
- * @param \ITW\ContactBundle\Entity\Person $persons
- * @return Contact
- */
- public function addPerson(\ITW\ContactBundle\Entity\Person $person)
- {
- $this->persons->add($person);
- $person->setContact($this);
- return $this;
- }
Advertisement
Add Comment
Please, Sign In to add comment