Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- * @ORM\Table(name="genus_scientist")
- */
- class GenusScientist
- {
- /**
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @ORM\ManyToOne(targetEntity="Genus", inversedBy="genusScientists")
- * @ORM\JoinColumn(nullable=false)
- */
- private $genus;
- /**
- * @ORM\ManyToOne(targetEntity="User")
- * @ORM\JoinColumn(nullable=false)
- */
- private $user;
- /**
- * @ORM\Column(type="string")
- */
- private $yearsStudied;
- public function getId()
- {
- return $this->id;
- }
- public function getGenus()
- {
- return $this->genus;
- }
- public function setGenus($genus)
- {
- $this->genus = $genus;
- }
- public function getUser()
- {
- return $this->user;
- }
- public function setUser($user)
- {
- $this->user = $user;
- }
- public function getYearsStudied()
- {
- return $this->yearsStudied;
- }
- public function setYearsStudied($yearsStudied)
- {
- $this->yearsStudied = $yearsStudied;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement