mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 17:39:06 +02:00
Added possibility to associate a part with a project that represents the builds of the project
This commit is contained in:
parent
adc070d10c
commit
fdcd1b9d9d
6 changed files with 106 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue