src/Entity/Veterinaire.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Enquete;
  4. use App\Entity\User;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Ignore;
  7. /**
  8.  * @ORM\Entity(repositoryClass=UserRepository::class)
  9.  */
  10. #[Entity]
  11. class Veterinaire extends User
  12. {
  13.     /**
  14.      * ORM\OneToMany(targetEntity=Enquete::class, mappedBy="veterinaire")
  15.      * Ignore()
  16.      */
  17.     //protected $enquetes;
  18.     /**
  19.      * ORM\OneToMany(targetEntity=AgentPathogene::class, mappedBy="domain")
  20.      * @Ignore()
  21.      */
  22.     //protected $ownAgentPathogenes;
  23.     /**
  24.      * ORM\OneToMany(targetEntity=Pathologie::class, mappedBy="domain")
  25.      * @Ignore()
  26.      */
  27.     //protected $ownPathologies;
  28.     /**
  29.      * ORM\OneToMany(targetEntity=Opa::class, mappedBy="domain")
  30.      * @Ignore()
  31.      */
  32.     //protected $ownOpas;
  33.     /**
  34.      * ORM\OneToMany(targetEntity=Fonction::class, mappedBy="domain")
  35.      * @Ignore()
  36.      */
  37.     //protected $ownFonctions;
  38.     /**
  39.      * ORM\OneToMany(targetEntity=Pathologie::class, mappedBy="domain")
  40.      */
  41.     //protected $ownPathologies;
  42.     /**
  43.      * ORM\OneToMany(targetEntity=Opa::class, mappedBy="domain")
  44.      */
  45.     //protected $ownOpas;
  46.     /**
  47.      * ORM\OneToMany(targetEntity=Fonction::class, mappedBy="domain")
  48.      */
  49.     //protected $ownFonctions;
  50.     /**
  51.      * ORM\OneToMany(targetEntity=Production::class, mappedBy="domain")
  52.      */
  53.     //protected $ownProductions;
  54.     public function __construct(string $val 'veterinaire')
  55.     {
  56.         parent::__construct($val);
  57.         $this->roles[] = 'ROLE_VETERINAIRE';
  58.     }
  59. /*
  60.     public function getEnquetes(): ?Enquete
  61.     {
  62.         return $this->enquetes;
  63.     }
  64.     public function setEnquetes(?Enquete $enquetes): self
  65.     {
  66.         $this->enquetes = $enquetes;
  67.         return $this;
  68.     }
  69. */
  70. }