You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
2.3 KiB
128 lines
2.3 KiB
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* Documentos
|
|
*
|
|
* @ORM\Table(name="documentos", indexes={@ORM\Index(name="eventos_id", columns={"eventos_id"})})
|
|
* @ORM\Entity
|
|
*/
|
|
class Documentos
|
|
{
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id", type="integer", nullable=false)
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="filename", type="text", length=65535, nullable=false)
|
|
*/
|
|
private $filename;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="name", type="text", length=65535, nullable=false)
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="description", type="text", length=65535, nullable=false)
|
|
*/
|
|
private $description;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="createdAt", type="datetime", nullable=false)
|
|
*/
|
|
private $createdat;
|
|
|
|
/**
|
|
* @var \Eventos
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="Eventos")
|
|
* @ORM\JoinColumns({
|
|
* @ORM\JoinColumn(name="eventos_id", referencedColumnName="id")
|
|
* })
|
|
*/
|
|
private $eventos;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getFilename(): ?string
|
|
{
|
|
return $this->filename;
|
|
}
|
|
|
|
public function setFilename(string $filename): self
|
|
{
|
|
$this->filename = $filename;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getName(): ?string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName(string $name): self
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDescription(): ?string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function setDescription(string $description): self
|
|
{
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getCreatedat(): ?\DateTimeInterface
|
|
{
|
|
return $this->createdat;
|
|
}
|
|
|
|
public function setCreatedat(\DateTimeInterface $createdat): self
|
|
{
|
|
$this->createdat = $createdat;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getEventos(): ?Eventos
|
|
{
|
|
return $this->eventos;
|
|
}
|
|
|
|
public function setEventos(?Eventos $eventos): self
|
|
{
|
|
$this->eventos = $eventos;
|
|
|
|
return $this;
|
|
}
|
|
|
|
|
|
}
|