Commit 2e6c717d authored by Адлан Шамавов's avatar Адлан Шамавов
Browse files

STA-965 | Поправил uuid

parent fa09ef96
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ use Symfony\Component\Uid\Uuid;
class File
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'uuid', unique: true)]
    private ?Uuid $id = null;

+3 −2
Original line number Diff line number Diff line
@@ -4,14 +4,15 @@ namespace App\Entity;

use App\Repository\GalleryRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Uid\Uuid;

#[ORM\Entity(repositoryClass: GalleryRepository::class)]
class Gallery
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column]
    private ?int $id = null;
    #[ORM\Column(type: 'uuid', unique: true)]
    private ?Uuid $id = null;

    #[ORM\ManyToOne(inversedBy: 'galleries')]
    #[ORM\JoinColumn(nullable: false)]
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ use Symfony\Component\Uid\Uuid;
class Kitchen
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'uuid', unique: true)]
    private ?Uuid $id = null;

+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ use Symfony\Component\Uid\Uuid;
class News
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'uuid', unique: true)]
    private ?Uuid $id = null;

+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ use Symfony\Component\Uid\Uuid;
class NewsCategory
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'uuid', unique: true)]
    private ?Uuid $id = null;

Loading