*/ #[ORM\ManyToMany(targetEntity: BankQuestion::class, mappedBy: 'labels')] public private(set) Collection $bankQuestions; #[ORM\Column(length: 16, enumType: LabelColour::class, options: ['default' => 'secondary'])] public LabelColour $colour = LabelColour::Gray; #[ORM\Column(length: 64)] public string $slug = ''; public function __construct( #[ORM\Column(length: 64)] public string $name, ) { $this->bankQuestions = new ArrayCollection(); } public function __toString(): string { return $this->name; } }