diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2b6ed8c7..5745cc4d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -24,11 +24,14 @@ - - - + + - + + + + + diff --git a/src/Entity/ExepenseConfig.php b/src/Entity/ExepenseConfig.php index 5b2864bc..89fd8573 100644 --- a/src/Entity/ExepenseConfig.php +++ b/src/Entity/ExepenseConfig.php @@ -4,8 +4,10 @@ namespace App\Entity; use App\Repository\ExepenseConfigRepository; use Doctrine\ORM\Mapping as ORM; +use ApiPlatform\Metadata\ApiResource; #[ORM\Entity(repositoryClass: ExepenseConfigRepository::class)] +#[ApiResource] class ExepenseConfig { #[ORM\Id] diff --git a/src/Entity/Festival.php b/src/Entity/Festival.php index 56758d27..ae7abd1e 100644 --- a/src/Entity/Festival.php +++ b/src/Entity/Festival.php @@ -6,8 +6,10 @@ use App\Repository\FestivalRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; +use ApiPlatform\Metadata\ApiResource; #[ORM\Entity(repositoryClass: FestivalRepository::class)] +#[ApiResource] class Festival { #[ORM\Id] diff --git a/src/Entity/Product.php b/src/Entity/Product.php index 6f1d24a5..e687743a 100644 --- a/src/Entity/Product.php +++ b/src/Entity/Product.php @@ -2,8 +2,7 @@ namespace App\Entity; - -use ApiPlatform\Core\Annotation\ApiResource; +use ApiPlatform\Metadata\ApiResource; use App\Repository\ProductRepository; use Doctrine\ORM\Mapping as ORM; diff --git a/src/Entity/ProductCategory.php b/src/Entity/ProductCategory.php index 9dff98e1..51d5c7de 100644 --- a/src/Entity/ProductCategory.php +++ b/src/Entity/ProductCategory.php @@ -6,8 +6,10 @@ use App\Repository\ProductCategoryRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; +use ApiPlatform\Metadata\ApiResource; #[ORM\Entity(repositoryClass: ProductCategoryRepository::class)] +#[ApiResource] class ProductCategory { #[ORM\Id] diff --git a/src/Entity/ProductSold.php b/src/Entity/ProductSold.php index e0998f59..c85af262 100644 --- a/src/Entity/ProductSold.php +++ b/src/Entity/ProductSold.php @@ -4,8 +4,10 @@ namespace App\Entity; use App\Repository\ProductSoldRepository; use Doctrine\ORM\Mapping as ORM; +use ApiPlatform\Metadata\ApiResource; #[ORM\Entity(repositoryClass: ProductSoldRepository::class)] +#[ApiResource] class ProductSold { #[ORM\Id] diff --git a/src/Entity/SellRecord.php b/src/Entity/SellRecord.php index 0e0e304d..55961014 100644 --- a/src/Entity/SellRecord.php +++ b/src/Entity/SellRecord.php @@ -5,8 +5,10 @@ namespace App\Entity; use App\Repository\SellRecordRepository; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; +use ApiPlatform\Metadata\ApiResource; #[ORM\Entity(repositoryClass: SellRecordRepository::class)] +#[ApiResource] class SellRecord { #[ORM\Id] diff --git a/src/Entity/SerieFestival.php b/src/Entity/SerieFestival.php index ab5e57e4..48342635 100644 --- a/src/Entity/SerieFestival.php +++ b/src/Entity/SerieFestival.php @@ -5,8 +5,10 @@ namespace App\Entity; use App\Repository\SerieFestivalRepository; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; +use ApiPlatform\Metadata\ApiResource; #[ORM\Entity(repositoryClass: SerieFestivalRepository::class)] +#[ApiResource] class SerieFestival { #[ORM\Id] diff --git a/src/Entity/User.php b/src/Entity/User.php index 8a913475..2df3b783 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -10,7 +10,9 @@ use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; use Symfony\Component\Security\Core\User\UserInterface; +use ApiPlatform\Metadata\ApiResource; +#[ApiResource] #[ORM\Entity(repositoryClass: UserRepository::class)] #[ORM\Table(name: '`user`')] #[UniqueEntity(fields: ['email'], message: 'There is already an account with this email')]