Category : dto

I have an Api-platform project in which I use DTO. I have Foo entity which is an API ressource with : /** * @ApiResource( * input=FooInput::class, * attributes={ * … * } * ) * @ORMEntity(repositoryClass="AppRepositoryFooClasseRepository") */ class Foo { /** * @ORMId() * @ORMGeneratedValue() * @ORMColumn(type="integer") */ private $id; /** * @ORMColumn(type="string", length=50) */ ..

Read more