This commit is contained in:
2025-07-14 11:50:52 +02:00
parent 038cf83d85
commit b07cbc5bf4
5 changed files with 53 additions and 8 deletions

View File

@ -31,7 +31,7 @@ class Issue
private int $rowissue = 0;
#[ORM\Column(nullable: true)]
private string $color = '';
private ?string $color = null;
#[ORM\ManyToOne(targetEntity: Project::class, inversedBy: 'issues')]
#[ORM\JoinColumn(nullable: false)]
@ -130,7 +130,9 @@ class Issue
public function getColor(): ?string
{
return $this->rowsprint;
if($this->color) return $this->color;
elseif($this->parent) return $this->parent->getColor();
else return null;
}
public function setColor(?string $color): static