WIP: Implement teamer document upload handling

This commit is contained in:
Björn Fromme
2023-10-12 19:50:08 +02:00
parent bfd18b21ce
commit 6df725edc4
25 changed files with 611 additions and 165 deletions
+17 -2
View File
@@ -22,9 +22,9 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
public const TYPE_DOCUMENT = 'document';
public const STATUS_NEW = 'new';
public const STATUS_IN_PROCESS = 'in_process';
public const CHECKING = 'checking';
public const STATUS_CHECKED = 'checked';
public const STATUS_PAYED = 'payed';
public const STATUS_PAID = 'paid';
public const STATUS_ERROR = 'error';
#[ORM\Id]
@@ -59,6 +59,9 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
#[ORM\ManyToOne]
private ?User $owner = null;
#[ORM\ManyToOne(inversedBy: 'documents')]
private ?Disposition $disposition = null;
public function __construct()
{
$this->uuid = Uuid::v4();
@@ -184,4 +187,16 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
return $this;
}
public function getDisposition(): ?Disposition
{
return $this->disposition;
}
public function setDisposition(?Disposition $disposition): static
{
$this->disposition = $disposition;
return $this;
}
}