I have two objects with a one to many relation between them. Both objects have a (distinct)
normalizationContext set and the corresponding properties are annotated with the @Groups annotation.
As documented, I added the normalizationContext from the parent to the properties of the child object that I want to be returned when querying the parent object.
This works as expected in my development environment where I use the docker-environment provided by api-platform (which uses PostgreSQL).
Migrating this code to my staging-environment (cheap hosting-webspace without docker), where MariaDB 10 is used, everything keeps working except those properties from the relation. There only the IRI for the children is returned – none of the properties from the normalizationContext of the parent.
Any ideas where to look for errors?
Source: Symfony Questions
Was this helpful?
0 / 0