Added possibility to associate a part with a project that represents the builds of the project

This commit is contained in:
Jan Böhmer 2022-12-29 16:21:04 +01:00
parent adc070d10c
commit fdcd1b9d9d
6 changed files with 106 additions and 10 deletions

View file

@ -66,10 +66,10 @@ class Project extends AbstractStructuralDBElement
/**
* @var string The current status of the project
* @ORM\Column(type="string", length=64)
* @Assert\Choice({"draft","planning","in_production","finished","archived", ""})
* @ORM\Column(type="string", length=64, nullable=true)
* @Assert\Choice({"draft","planning","in_production","finished","archived"})
*/
protected string $status;
protected ?string $status = null;
/**
@ -237,7 +237,7 @@ class Project extends AbstractStructuralDBElement
/**
* @return string
*/
public function getStatus(): string
public function getStatus(): ?string
{
return $this->status;
}
@ -245,7 +245,7 @@ class Project extends AbstractStructuralDBElement
/**
* @param string $status
*/
public function setStatus(string $status): void
public function setStatus(?string $status): void
{
$this->status = $status;
}