src/Entity/FlowModel.php line 22
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use ApiPlatform\Metadata\Get;use ApiPlatform\Metadata\GetCollection;use App\Repository\FlowModelRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: FlowModelRepository::class)]#[ApiResource(operations: [new GetCollection(),new Get(normalizationContext: ['groups' => ['flow:list', 'flow:view']]),],normalizationContext: ['groups' => ['flow:list']])]class FlowModel{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['flow:list'])]private ?int $id = null;#[ORM\Column(length: 255)]#[Groups(['flow:list'])]private ?string $name = null;public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}}