add authentication
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marko
2023-11-10 16:54:07 +01:00
parent 9c2e2b6ade
commit 8554cf714d
28 changed files with 699 additions and 774 deletions

View File

@@ -4,7 +4,7 @@ namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\ProductRepository;
use App\Repository\StockRepository;
use DateTimeInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
@@ -21,7 +21,7 @@ class Product
private ?string $gtin = null;
#[ORM\Column(name: 'update_time', type: Types::DATETIME_MUTABLE, nullable: true, options: ['default' => 'CURRENT_TIMESTAMP'])]
private ?\DateTimeInterface $updateTime = null;
private ?DateTimeInterface $updateTime = null;
public function getId(): ?int
@@ -41,12 +41,12 @@ class Product
return $this;
}
public function getUpdateTime(): ?\DateTimeInterface
public function getUpdateTime(): ?DateTimeInterface
{
return $this->updateTime;
}
public function setUpdateTime(\DateTimeInterface $updateTime): self
public function setUpdateTime(DateTimeInterface $updateTime): self
{
$this->updateTime = $updateTime;