src/Entity/LookUpTableDimension.php line 12
<?phpnamespace App\Entity;use App\Repository\LookUpTableDimensionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;#[ORM\Entity(repositoryClass: LookUpTableDimensionRepository::class)]class LookUpTableDimension{use TimestampableEntity;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255, nullable: true)]private ?string $name = null;#[ORM\Column(length: 255, nullable: true)]private ?string $field = null;#[ORM\Column(length: 255, nullable: true)]private ?string $type = null;#[ORM\Column(length: 255, nullable: true)]private ?string $dataType = null;#[ORM\Column]private ?int $orderNumber = 0;#[ORM\ManyToOne(inversedBy: 'lookUpTableDimensions', fetch:'EAGER')]private ?LookUpTable $lookUpTable = null;#[ORM\OneToMany(mappedBy: 'lookUpTableDimension', targetEntity: LookUpTableDataValue::class)]private Collection $lookUpTableDataValues;public function __construct(){$this->lookUpTableDataValues = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(?string $name): static{$this->name = $name;return $this;}public function getField(): ?string{return $this->field;}public function setField(?string $field): static{$this->field = $field;return $this;}public function getType(): ?string{return $this->type;}public function setType(?string $type): static{$this->type = $type;return $this;}public function getDataType(): ?string{return $this->dataType;}public function setDataType(?string $dataType): static{$this->dataType = $dataType;return $this;}public function getOrderNumber(): ?int{return $this->orderNumber;}public function setOrderNumber(int $orderNumber): static{$this->orderNumber = $orderNumber;return $this;}public function getLookUpTable(): ?LookUpTable{return $this->lookUpTable;}public function setLookUpTable(?LookUpTable $lookUpTable): static{$this->lookUpTable = $lookUpTable;return $this;}/*** @return Collection<int, LookUpTableDataValue>*/public function getLookUpTableDataValues(): Collection{return $this->lookUpTableDataValues;}public function addLookUpTableDataValue(LookUpTableDataValue $lookUpTableDataValue): static{if (!$this->lookUpTableDataValues->contains($lookUpTableDataValue)) {$this->lookUpTableDataValues->add($lookUpTableDataValue);$lookUpTableDataValue->setLookUpTableDimension($this);}return $this;}public function removeLookUpTableDataValue(LookUpTableDataValue $lookUpTableDataValue): static{if ($this->lookUpTableDataValues->removeElement($lookUpTableDataValue)) {// set the owning side to null (unless already changed)if ($lookUpTableDataValue->getLookUpTableDimension() === $this) {$lookUpTableDataValue->setLookUpTableDimension(null);}}return $this;}public function __toString() {return $this->name;}}