<?php
namespace App\Entity;
use App\Repository\CustomFieldSettingRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
#[ORM\Entity(repositoryClass: CustomFieldSettingRepository::class)]
class CustomFieldSetting
{
use TimestampableEntity;
/**
* @var int
*/
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
/**
* @var Company
*/
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: Company::class, inversedBy: 'customFieldSettings')]
private $company;
/**
* @var CustomField
*/
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: CustomField::class)]
private $customField;
/**
* @var string|null
*/
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name;
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getCustomField(): ?CustomField
{
return $this->customField;
}
public function setCustomField(?CustomField $customField): self
{
$this->customField = $customField;
return $this;
}
}