src/Entity/CustomField.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomFieldRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Blameable\Traits\BlameableEntity;
  6. use Gedmo\Timestampable\Traits\TimestampableEntity;
  7. #[ORM\Table]
  8. #[ORM\Index(name: 'field_type', columns: ['field_type'])]
  9. #[ORM\Index(name: 'field_name', columns: ['field_name'])]
  10. #[ORM\Entity(repositoryClass: CustomFieldRepository::class)]
  11. class CustomField
  12. {
  13. use TimestampableEntity;
  14. use BlameableEntity;
  15. #[ORM\Id]
  16. #[ORM\GeneratedValue]
  17. #[ORM\Column(type: 'integer')]
  18. private $id;
  19. #[ORM\Column(type: 'string', length: 255)]
  20. private $fieldName;
  21. #[ORM\Column(type: 'string', length: 255)]
  22. private $fieldType;
  23. public function getId(): ?int
  24. {
  25. return $this->id;
  26. }
  27. public function getFieldName(): ?string
  28. {
  29. return $this->fieldName;
  30. }
  31. public function setFieldName(string $fieldName): self
  32. {
  33. $this->fieldName = $fieldName;
  34. return $this;
  35. }
  36. public function getFieldType(): ?string
  37. {
  38. return $this->fieldType;
  39. }
  40. public function setFieldType(string $fieldType): self
  41. {
  42. $this->fieldType = $fieldType;
  43. return $this;
  44. }
  45. }