core
core copied to clipboard
Attempted to call an undefined method named "withParameterName" of class "ApiPlatform\Metadata\ApiProperty"
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".