<?php
namespace App\Entity;
use App\Repository\CustomFieldRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Blameable\Traits\BlameableEntity;
use Gedmo\Timestampable\Traits\TimestampableEntity;
#[ORM\Table]
#[ORM\Index(name: 'field_type', columns: ['field_type'])]
#[ORM\Index(name: 'field_name', columns: ['field_name'])]
#[ORM\Entity(repositoryClass: CustomFieldRepository::class)]
class CustomField
{
use TimestampableEntity;
use BlameableEntity;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $fieldName;
#[ORM\Column(type: 'string', length: 255)]
private $fieldType;
public function getId(): ?int
{
return $this->id;
}
public function getFieldName(): ?string
{
return $this->fieldName;
}
public function setFieldName(string $fieldName): self
{
$this->fieldName = $fieldName;
return $this;
}
public function getFieldType(): ?string
{
return $this->fieldType;
}
public function setFieldType(string $fieldType): self
{
$this->fieldType = $fieldType;
return $this;
}
}