src/Entity/Referencia.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\ReferenciaRepository")
  7.  * @ORM\Table(name="referencia", schema="perseo")
  8.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  9.  */
  10. class Referencia
  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="boolean", nullable=true)
  20.      */
  21.     protected $caja;
  22.     /**
  23.      * @ORM\Column(type="boolean", nullable=true)
  24.      */
  25.     protected $papeles;
  26.     /**
  27.      * @ORM\Column(type="float", nullable=true, precision=2)
  28.      */
  29.     protected $precio;
  30.     /**
  31.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  32.      */
  33.     protected $deletedAt;
  34.     /**
  35.      * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  36.      * @Gedmo\Timestampable(on="update")
  37.      */
  38.     protected $updatedAt;
  39.     /**
  40.      * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  41.      * @Gedmo\Timestampable(on="create")
  42.      */
  43.     protected $createdAt;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity="App\Entity\Canal", inversedBy="referencias")
  46.      * @ORM\JoinColumn(name="canal_id", referencedColumnName="id")
  47.      */
  48.     protected $canal;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity="App\Entity\ValoracionesRelojes", inversedBy="referencias")
  51.      * @ORM\JoinColumn(name="valoraciones_relojes_id", referencedColumnName="id")
  52.      */
  53.     protected $valoracionReloj;
  54.     public function getId(): ?string
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function setId(int $id): self
  59.     {
  60.         $this->id $id;
  61.         return $this;
  62.     }
  63.     public function getCaja(): ?bool
  64.     {
  65.         return $this->caja;
  66.     }
  67.     public function setCaja(?bool $caja): self
  68.     {
  69.         $this->caja $caja;
  70.         return $this;
  71.     }
  72.     public function getPapeles(): ?bool
  73.     {
  74.         return $this->papeles;
  75.     }
  76.     public function setPapeles(?bool $papeles): self
  77.     {
  78.         $this->papeles $papeles;
  79.         return $this;
  80.     }
  81.     public function getPrecio(): ?float
  82.     {
  83.         return $this->precio;
  84.     }
  85.     public function setPrecio(?float $precio): self
  86.     {
  87.         $this->precio $precio;
  88.         return $this;
  89.     }
  90.     public function getDeletedAt(): ?\DateTimeInterface
  91.     {
  92.         return $this->deletedAt;
  93.     }
  94.     public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  95.     {
  96.         $this->deletedAt $deletedAt;
  97.         return $this;
  98.     }
  99.     public function getUpdatedAt(): ?\DateTimeInterface
  100.     {
  101.         return $this->updatedAt;
  102.     }
  103.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  104.     {
  105.         $this->updatedAt $updatedAt;
  106.         return $this;
  107.     }
  108.     public function getCreatedAt(): ?\DateTimeInterface
  109.     {
  110.         return $this->createdAt;
  111.     }
  112.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  113.     {
  114.         $this->createdAt $createdAt;
  115.         return $this;
  116.     }
  117.     public function getCanal(): ?Canal
  118.     {
  119.         return $this->canal;
  120.     }
  121.     public function setCanal(?Canal $canal): self
  122.     {
  123.         $this->canal $canal;
  124.         return $this;
  125.     }
  126.     public function getValoracionReloj(): ?ValoracionesRelojes
  127.     {
  128.         return $this->valoracionReloj;
  129.     }
  130.     public function setValoracionReloj(?ValoracionesRelojes $valoracionReloj): self
  131.     {
  132.         $this->valoracionReloj $valoracionReloj;
  133.         return $this;
  134.     }
  135. }