feat: status 'draft' for assignments

This commit is contained in:
Björn Fromme
2024-01-31 19:35:16 +01:00
parent d735996d7d
commit b328ebd91b
5 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
use TimestampableEntity;
use SoftDeletableEntity;
public const STATUS_DRAFT = 'draft';
public const STATUS_OPEN = 'open';
public const STATUS_CLOSED = 'closed';
@@ -90,7 +91,7 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
public function __construct()
{
$this->uuid = Uuid::v4();
$this->status = static::STATUS_OPEN;
$this->status = static::STATUS_DRAFT;
$this->fees = new ArrayCollection();
$this->applications = new ArrayCollection();
$this->dispositions = new ArrayCollection();