From ac57b993f8c7839db816c1ccca04c91ab40c261f Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 10 Mar 2023 16:29:39 +0100 Subject: [PATCH] replace annotation with attributes --- docs/entities/em.md | 4 +--- docs/entities/query.md | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/entities/em.md b/docs/entities/em.md index f298014..a7f3bd0 100644 --- a/docs/entities/em.md +++ b/docs/entities/em.md @@ -13,9 +13,7 @@ use App\Repository\MyEntityRepository; use Doctrine\ORM\Mapping as ORM; use App\Core\Entity\EntityInterface; -/** - * @ORM\Entity(repositoryClass=MyEntityRepository::class) - */ +#[ORM\Entity(repositoryClass: MyEntityRepository::class)] class MyEntity implements EntityInterface { // ... diff --git a/docs/entities/query.md b/docs/entities/query.md index 2467a9a..18e79d5 100644 --- a/docs/entities/query.md +++ b/docs/entities/query.md @@ -13,9 +13,7 @@ use App\Repository\MyEntityRepository; use Doctrine\ORM\Mapping as ORM; use App\Core\Entity\EntityInterface; -/** - * @ORM\Entity(repositoryClass=MyEntityRepository::class) - */ +#[ORM\Entity(repositoryClass: MyEntityRepository::class)] class MyEntity implements EntityInterface { // ...