Closed Gamesh closed 2 years ago
API Platform version(s) affected: 3.1.1
Description I have a warehouse_part resource which has a place resource as a many:1 relation In previous versions:
many:1
<InputGuesser source="place" validate={[required()]}/>
would produce an autocomplete field where i can select a place when creating a new Part entity. But now it's displayed as a TextInput field Even though the hydra jsonD didn't change:
{ "@type": "hydra:SupportedProperty", "hydra:property": { "@id": "#WarehousePart\/place", "@type": "rdf:Property", "rdfs:label": "place", "domain": "#WarehousePart" }, "hydra:title": "place", "hydra:required": false, "hydra:readable": true, "hydra:writeable": true },
the same happened for other relations. I checked the upgrade docs but it does not mention any adjustments
Nvm it turns out the @ApiResource(input=....) has this odd effect
@ApiResource(input=....)
API Platform version(s) affected: 3.1.1
Description
I have a warehouse_part resource which has a place resource as a
many:1
relation In previous versions:would produce an autocomplete field where i can select a place when creating a new Part entity. But now it's displayed as a TextInput field Even though the hydra jsonD didn't change:
the same happened for other relations. I checked the upgrade docs but it does not mention any adjustments