WIP: Implement admin dashboard

This commit is contained in:
Björn Fromme
2023-10-22 17:05:43 +02:00
parent 38d6fafcb2
commit 91f0f76ccc
15 changed files with 280 additions and 4 deletions
+15
View File
@@ -81,6 +81,9 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
#[ORM\ManyToMany(targetEntity: Upload::class)]
private Collection $documents;
#[ORM\ManyToOne]
private ?User $owner = null;
public function __construct()
{
$this->uuid = Uuid::v4();
@@ -421,4 +424,16 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
return $this;
}
public function getOwner(): ?User
{
return $this->owner;
}
public function setOwner(?User $owner): static
{
$this->owner = $owner;
return $this;
}
}
+1
View File
@@ -23,6 +23,7 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
public const TYPE_DOCUMENT = 'document';
public const STATUS_NEW = 'new';
public const STATUS_PENDING = 'pending';
public const STATUS_CHECKED = 'checked';
public const STATUS_PAID = 'paid';
public const STATUS_REJECTED = 'rejected';