WIP: Implement Admin CRUD
This commit is contained in:
+4
-1
@@ -6,6 +6,7 @@ use App\Entity\Traits\BlameableEntity;
|
||||
use App\Entity\Traits\TimestampableEntity;
|
||||
use App\Repository\FeeRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
#[ORM\Entity(repositoryClass: FeeRepository::class)]
|
||||
class Fee implements BlameableEntityInterface, TimestampableEntityInterface
|
||||
@@ -19,9 +20,11 @@ class Fee implements BlameableEntityInterface, TimestampableEntityInterface
|
||||
private ?int $id = null;
|
||||
|
||||
#[ORM\Column]
|
||||
private ?int $value = null;
|
||||
#[Assert\NotNull(message: 'Bitte gib den Wert an')]
|
||||
private ?int $value = null; // Stored as int, divide by 100!
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
#[Assert\NotBlank(message: 'Bitte gib die Bezeichnung an')]
|
||||
private ?string $name = null;
|
||||
|
||||
public function getId(): ?int
|
||||
|
||||
Reference in New Issue
Block a user