first commit symfony 6
This commit is contained in:
132
src/Entity/Audit.php
Normal file
132
src/Entity/Audit.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\AuditRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Cron
|
||||
*
|
||||
* @ORM\Table(name="audit",indexes={@ORM\Index(name="search_idx", columns={"entityname", "entityid", "datesubmit"})})
|
||||
* @ORM\Entity(repositoryClass="App\Repository\AuditRepository")
|
||||
*/
|
||||
class Audit
|
||||
{ /**
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=250, nullable=false)
|
||||
*/
|
||||
private $entityname;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=250, nullable=false)
|
||||
*/
|
||||
private $entityid;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="datetime")
|
||||
*/
|
||||
private $datesubmit;
|
||||
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=250, nullable=false)
|
||||
*/
|
||||
private $username;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="array", nullable=true)
|
||||
*/
|
||||
private $detail = array();
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getEntityname(): ?string
|
||||
{
|
||||
return $this->entityname;
|
||||
}
|
||||
|
||||
public function setEntityname(string $entityname): self
|
||||
{
|
||||
$this->entityname = $entityname;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEntityid(): ?string
|
||||
{
|
||||
return $this->entityid;
|
||||
}
|
||||
|
||||
public function setEntityid(string $entityid): self
|
||||
{
|
||||
$this->entityid = $entityid;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDatesubmit(): ?\DateTimeInterface
|
||||
{
|
||||
return $this->datesubmit;
|
||||
}
|
||||
|
||||
public function setDatesubmit(\DateTimeInterface $datesubmit): self
|
||||
{
|
||||
$this->datesubmit = $datesubmit;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getUsername(): ?string
|
||||
{
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
public function setUsername(string $username): self
|
||||
{
|
||||
$this->username = $username;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDescription(): ?string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
public function setDescription(?string $description): self
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDetail(): array
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
|
||||
public function setDetail(?array $detail): self
|
||||
{
|
||||
$this->detail = $detail;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user