JTL Import

This commit is contained in:
Marko
2023-06-19 09:20:14 +02:00
parent 30a8e73f21
commit 873162859c
7 changed files with 153 additions and 11 deletions

View File

@@ -4,8 +4,16 @@ namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\OrderRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/*
* Bestellungen Status:
* 1 = Bestellung eingegangen
* 2 = Bestellung in Bearbeitung
* 3 = Bestellung versendet
*/
#[ORM\Entity(repositoryClass: OrderRepository::class)]
#[ORM\Table(name: '`order`')]
#[ApiResource]
@@ -25,6 +33,9 @@ class Order
#[ORM\Column]
private array $data = [];
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $changeDate = null;
public function getId(): ?int
{
return $this->id;
@@ -65,4 +76,16 @@ class Order
return $this;
}
}
public function getChangeDate(): ?\DateTimeInterface
{
return $this->changeDate;
}
public function setChangeDate(\DateTimeInterface $changeDate): static
{
$this->changeDate = $changeDate;
return $this;
}
}