src/Entity/Trazabilidad.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\TrazabilidadRepository", readOnly=true)
  7.  * @ORM\Table(name="trazabilidad", schema="perseo")
  8.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  9.  */
  10. class Trazabilidad
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\Column(type="bigint", options={"unsigned":true})
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     protected $id;
  18.     /**
  19.      * @ORM\Column(type="datetime", nullable=true)
  20.      */
  21.     protected $fecha;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=true)
  24.      */
  25.     protected $descripcion;
  26.     /**
  27.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  28.      */
  29.     protected $deletedAt;
  30.     /**
  31.      * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  32.      * @Gedmo\Timestampable(on="update")
  33.      */
  34.     protected $updatedAt;
  35.     /**
  36.      * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  37.      * @Gedmo\Timestampable(on="create")
  38.      */
  39.     protected $createdAt;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\Reloj", inversedBy="trazas")
  42.      * @ORM\JoinColumn(name="reloj_id", referencedColumnName="id")
  43.      */
  44.     protected $reloj;
  45.     public function getId(): ?string
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getFecha(): ?\DateTimeInterface
  50.     {
  51.         return $this->fecha;
  52.     }
  53.     public function setFecha(?\DateTimeInterface $fecha): self
  54.     {
  55.         $this->fecha $fecha;
  56.         return $this;
  57.     }
  58.     public function getDescripcion(): ?string
  59.     {
  60.         return $this->descripcion;
  61.     }
  62.     public function setDescripcion(?string $descripcion): self
  63.     {
  64.         $this->descripcion $descripcion;
  65.         return $this;
  66.     }
  67.     public function getDeletedAt(): ?\DateTimeInterface
  68.     {
  69.         return $this->deletedAt;
  70.     }
  71.     public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  72.     {
  73.         $this->deletedAt $deletedAt;
  74.         return $this;
  75.     }
  76.     public function getUpdatedAt(): ?\DateTimeInterface
  77.     {
  78.         return $this->updatedAt;
  79.     }
  80.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  81.     {
  82.         $this->updatedAt $updatedAt;
  83.         return $this;
  84.     }
  85.     public function getCreatedAt(): ?\DateTimeInterface
  86.     {
  87.         return $this->createdAt;
  88.     }
  89.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  90.     {
  91.         $this->createdAt $createdAt;
  92.         return $this;
  93.     }
  94.     public function getReloj(): ?Reloj
  95.     {
  96.         return $this->reloj;
  97.     }
  98.     public function setReloj(?Reloj $reloj): self
  99.     {
  100.         $this->reloj $reloj;
  101.         return $this;
  102.     }
  103. }