core icon indicating copy to clipboard operation
core copied to clipboard

Attempted to call an undefined method named "withParameterName" of class "ApiPlatform\Metadata\ApiProperty"

Open jusdepixel opened this issue 1 year ago • 0 comments

Hello everybody !

API Platform version(s) affected: 3.3.3

I have this resource :

#[ApiResource(
    uriTemplate: '/compta/dossiers/{dosId}/journals/{JrnId}',
    shortName: 'Journal',
    operations: [
        new Post(
            uriTemplate: '/compta/dossiers/{dosId}/journals'
        ),
        new Put(),
        new Delete(),
    ],
    uriVariables: [
        'jrnId' => new ApiProperty(identifier: true),
        'dosId' => new ApiProperty(identifier: false)
    ],
    provider: JournalProvider::class,
    processor: JournalProcessor::class,
)]

I have this error with ApiProperty : Attempted to call an undefined method named "withParameterName" of class "ApiPlatform\Metadata\ApiProperty".

jusdepixel avatar May 22 '24 08:05 jusdepixel