Advertisement
josk696

Untitled

Jul 25th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. namespace AppBundle\Entity;
  5.  
  6. use Doctrine\ORM\Mapping as ORM;
  7.  
  8. /**
  9. * @ORM\Entity
  10. * @ORM\Table(name="genus_scientist")
  11. */
  12. class GenusScientist
  13. {
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue(strategy="AUTO")
  17. * @ORM\Column(type="integer")
  18. */
  19. private $id;
  20.  
  21. /**
  22. * @ORM\ManyToOne(targetEntity="Genus", inversedBy="genusScientists")
  23. * @ORM\JoinColumn(nullable=false)
  24. */
  25. private $genus;
  26.  
  27. /**
  28. * @ORM\ManyToOne(targetEntity="User")
  29. * @ORM\JoinColumn(nullable=false)
  30. */
  31.  
  32. private $user;
  33.  
  34. /**
  35. * @ORM\Column(type="string")
  36. */
  37. private $yearsStudied;
  38.  
  39. public function getId()
  40. {
  41. return $this->id;
  42. }
  43.  
  44. public function getGenus()
  45. {
  46. return $this->genus;
  47. }
  48.  
  49. public function setGenus($genus)
  50. {
  51. $this->genus = $genus;
  52. }
  53.  
  54. public function getUser()
  55. {
  56. return $this->user;
  57. }
  58.  
  59. public function setUser($user)
  60. {
  61. $this->user = $user;
  62. }
  63.  
  64. public function getYearsStudied()
  65. {
  66. return $this->yearsStudied;
  67. }
  68.  
  69. public function setYearsStudied($yearsStudied)
  70. {
  71. $this->yearsStudied = $yearsStudied;
  72. }
  73.  
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement