['task_priority:read']], denormalizationContext: ['groups' => ['task_priority:write']], order: ['label' => 'ASC'], )] #[ORM\Entity(repositoryClass: TaskPriorityRepository::class)] class TaskPriority { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] #[Groups(['task_priority:read', 'task:read'])] private ?int $id = null; #[ORM\Column(length: 255)] #[Groups(['task_priority:read', 'task_priority:write', 'task:read'])] private ?string $label = null; #[ORM\Column(length: 7)] #[Groups(['task_priority:read', 'task_priority:write', 'task:read'])] private ?string $color = '#222783'; public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): static { $this->label = $label; return $this; } public function getColor(): ?string { return $this->color; } public function setColor(string $color): static { $this->color = $color; return $this; } }