You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understood the code correctly, the normalizer fails to identify the "project" parameter of the constructor as the "project" association. It waits for a full project and does not even try to fetch an existing project from the database. With a full project, it complains about not being allowed to update (?!).
The text was updated successfully, but these errors were encountered:
When an object constructor accepts an object that is actually a relation, api-platform/core 2.2.6 fails to denormalize it from an IRI.
e.g. Given this following class, where any Item must be associated to a Project:
The serializer has no issue serializing it. However, it fails to deserialize from the following JSON:
If I understood the code correctly, the normalizer fails to identify the "project" parameter of the constructor as the "project" association. It waits for a full project and does not even try to fetch an existing project from the database. With a full project, it complains about not being allowed to update (?!).
The text was updated successfully, but these errors were encountered: