src/Entity/Utilisateur/UtilisateurZoneGeographique.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Utilisateur;
  3. use App\Entity\Localisation\SecteurGeographique;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. /**
  9.  * UtilisateurZoneGeographique
  10.  *
  11.  * @ORM\Table("utilisateur__utilisateur_zone_geographique")
  12.  * @ORM\Entity(repositoryClass="App\Repository\Utilisateur\UtilisateurZoneGeographiqueRepository")
  13.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false) 
  14.  */
  15. class UtilisateurZoneGeographique
  16. {
  17.     /**
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @ORM\Column(name="date", type="datetime", nullable=true)
  25.      */
  26.     private $date;
  27.     
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="utilisateurSecteurGeographique")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $utilisateur;
  33.     
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\Localisation\SecteurGeographique", inversedBy="utilisateurSecteurGeographique")
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $secteurGeographique;
  39.     
  40.     /**
  41.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  42.      */
  43.     private $dateSuppression;
  44.     
  45.     
  46.     public function __construct()
  47.     {
  48.         $this->date = new Datetime();
  49.     }
  50.     public function getId(): int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function setDate(?DateTime $date): UtilisateurZoneGeographique
  55.     {
  56.         $this->date $date;
  57.         return $this;
  58.     }
  59.     public function getDate(): ?DateTime
  60.     {
  61.         return $this->date;
  62.     }
  63.     public function setUtilisateur(?Utilisateur $utilisateur): UtilisateurZoneGeographique
  64.     {
  65.         $this->utilisateur $utilisateur;
  66.         return $this;
  67.     }
  68.     public function getUtilisateur(): ?Utilisateur
  69.     {
  70.         return $this->utilisateur;
  71.     }
  72.     public function setSecteurGeographique(?SecteurGeographique $secteurGeographique): UtilisateurZoneGeographique
  73.     {
  74.         $this->secteurGeographique $secteurGeographique;
  75.         return $this;
  76.     }
  77.     public function getSecteurGeographique(): ?SecteurGeographique
  78.     {
  79.         return $this->secteurGeographique;
  80.     }
  81.     public function setDateSuppression(?DateTime $dateSuppression): UtilisateurZoneGeographique
  82.     {
  83.         $this->dateSuppression $dateSuppression;
  84.         return $this;
  85.     }
  86.     public function getDateSuppression(): ?DateTime
  87.     {
  88.         return $this->dateSuppression;
  89.     }    
  90.     
  91.     
  92. }