<?php
namespace App\Entity;
use DateTimeInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(
* name="propietario_contenido_has_usuario_hermes",
* indexes={
* @ORM\Index(name="idx_pc_usuario_hermes", columns={"usuario_hermes_id"}),
* @ORM\Index(name="idx_pc_propietario", columns={"propietario_contenido_id"})
* },
* uniqueConstraints={@ORM\UniqueConstraint(
* name="unique_usuario_propietario",
* columns={"usuario_hermes_id","propietario_contenido_id"}
* )}
* )
*/
class PropietarioContenidoHasUsuarioHermes extends \App\Entity\BaseEntity
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $estado;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedAt;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\UsuarioHermes::class, inversedBy="propietarioContenidoHasUsuarioHermes")
* @ORM\JoinColumn(name="usuario_hermes_id", referencedColumnName="id", nullable=false)
*/
private $usuarioHermes;
/**
* @ORM\ManyToOne(
* targetEntity=\App\Entity\PropietarioContenido::class,
* inversedBy="propietarioContenidoHasUsuarioHermes",
* cascade={"persist","remove"}
* )
* @ORM\JoinColumn(name="propietario_contenido_id", referencedColumnName="id", nullable=false)
*/
private $propietarioContenido;
public function getId(): ?int
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function isEstado(): ?bool
{
return $this->estado;
}
public function setEstado(?bool $estado): static
{
$this->estado = $estado;
return $this;
}
public function getCreatedAt(): ?DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUsuarioHermes(): ?UsuarioHermes
{
return $this->usuarioHermes;
}
public function setUsuarioHermes(?UsuarioHermes $usuarioHermes): static
{
$this->usuarioHermes = $usuarioHermes;
return $this;
}
public function getPropietarioContenido(): ?PropietarioContenido
{
return $this->propietarioContenido;
}
public function setPropietarioContenido(?PropietarioContenido $propietarioContenido): static
{
$this->propietarioContenido = $propietarioContenido;
return $this;
}
public function getValidatedAt()
{
return $this->validatedAt;
}
public function setValidatedAt($validatedAt)
{
$this->validatedAt = $validatedAt;
return $this;
}
}