namespace ; use ApiPlatform\Metadata\ApiResource; use ApiPlatform\Core\Annotation\ApiResource; use ; use Doctrine\ORM\Mapping as ORM; use Symfony\UX\Turbo\Attribute\Broadcast; /** * @ApiResource() * @Broadcast() * @ORM\Entity(repositoryClass=::class) * @ORM\Table(name="``") */ #[ORM\Entity(repositoryClass: ::class)] #[ORM\Table(name: '``')] #[ApiResource] #[Broadcast] class { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; public function getId(): ?int { return $this->id; } }