Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1.  
  2. /**
  3. *
  4. * @ORM\ManyToMany(targetEntity="Candidate", inversedBy="invitations")
  5. * @ORM\JoinColumns({
  6. * @ORM\JoinColumn(name="candidate_id", referencedColumnName="id")
  7. * })
  8. */
  9. private $candidate;
  10.  
  11. /**
  12. * Add candidate.
  13. *
  14. * @param \AppBundle\Entity\Candidate $candidate
  15. *
  16. * @return Invitation
  17. */
  18. public function addCandidate(\AppBundle\Entity\Candidate $candidate)
  19. {
  20. $this->candidate[] = $candidate;
  21.  
  22. return $this;
  23. }
  24.  
  25. /**
  26. * Remove candidate.
  27. *
  28. * @param \AppBundle\Entity\Candidate $candidate
  29. */
  30. public function removeCandidate(\AppBundle\Entity\Candidate $candidate)
  31. {
  32. $this->candidate->removeElement($candidate);
  33. }
  34.  
  35. /**
  36. * Get offerSkill.
  37. *
  38. * @return \Doctrine\Common\Collections\Collection
  39. */
  40. public function getCandidate()
  41. {
  42. return $this->candidate;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement