WIP: Implement profile editing
This commit is contained in:
1 parent
d776d37cd5
commit
953aa9c8e0
27 files changed
+598
-43
No files matched your search
@@ -7,6 +7,7 @@ use App\Repository\LicenseRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
#[ORM\Entity(repositoryClass: LicenseRepository::class)]
|
||||
class License implements TimestampableEntityInterface
|
||||
@@ -25,12 +26,14 @@ class License implements TimestampableEntityInterface
|
||||
private string $uuid;
|
||||
|
||||
#[ORM\Column(length: 64)]
|
||||
private ?string $type = null;
|
||||
private ?string $type;
|
||||
|
||||
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
|
||||
#[Assert\NotNull(message: 'Bitte gib das Datum an')]
|
||||
private ?\DateTimeImmutable $date = null;
|
||||
|
||||
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
|
||||
#[Assert\NotNull(message: 'Bitte lade den Nachweis hoch')]
|
||||
private ?Upload $certificate = null;
|
||||
|
||||
#[ORM\ManyToOne(inversedBy: 'licenses')]
|
||||
|
||||
@@ -16,6 +16,7 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
|
||||
use TimestampableEntity;
|
||||
|
||||
public const TYPE_PHOTO = 'photo';
|
||||
public const TYPE_CERTIFICATE = 'certificate';
|
||||
|
||||
public const STATUS_NEW = 'new';
|
||||
public const STATUS_IN_PROCESS = 'in_process';
|
||||
|
||||
Reference in new issue
Block a user