<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass="App\Repository\ReferenciaRepository")
* @ORM\Table(name="referencia", schema="perseo")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
*/
class Referencia
{
/**
* @ORM\Id
* @ORM\Column(type="bigint", options={"unsigned":true})
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $caja;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $papeles;
/**
* @ORM\Column(type="float", nullable=true, precision=2)
*/
protected $precio;
/**
* @ORM\Column(type="datetime", nullable=true, name="deleted_at")
*/
protected $deletedAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
* @Gedmo\Timestampable(on="update")
*/
protected $updatedAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
* @Gedmo\Timestampable(on="create")
*/
protected $createdAt;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Canal", inversedBy="referencias")
* @ORM\JoinColumn(name="canal_id", referencedColumnName="id")
*/
protected $canal;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ValoracionesRelojes", inversedBy="referencias")
* @ORM\JoinColumn(name="valoraciones_relojes_id", referencedColumnName="id")
*/
protected $valoracionReloj;
public function getId(): ?string
{
return $this->id;
}
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getCaja(): ?bool
{
return $this->caja;
}
public function setCaja(?bool $caja): self
{
$this->caja = $caja;
return $this;
}
public function getPapeles(): ?bool
{
return $this->papeles;
}
public function setPapeles(?bool $papeles): self
{
$this->papeles = $papeles;
return $this;
}
public function getPrecio(): ?float
{
return $this->precio;
}
public function setPrecio(?float $precio): self
{
$this->precio = $precio;
return $this;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): self
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCanal(): ?Canal
{
return $this->canal;
}
public function setCanal(?Canal $canal): self
{
$this->canal = $canal;
return $this;
}
public function getValoracionReloj(): ?ValoracionesRelojes
{
return $this->valoracionReloj;
}
public function setValoracionReloj(?ValoracionesRelojes $valoracionReloj): self
{
$this->valoracionReloj = $valoracionReloj;
return $this;
}
}