Closed Drachenkaetzchen closed 9 years ago
Do you send this JSON fragment trough a POST
or a PUT
request?
Can you post your service definition and your entities (especially groups definition) to see what is going wrong?
I'm using a PUT request, I haven't tested POST so far.
config.yml Unit.php SiPrefix.php
In the meanwhile, I tried different things like making properties public and removing getters/setters, but it didn't seem to work. Most likely a PEBCAK, but I couldn't figure it out. Thanks for your help!
Thank you for the report, it was a bug! Fixed in master.
Thank you for the quick fix, I can confirm that it works now.
Consider this JSON fragment:
In my installation, the bundle tries to create a new entity instead of loading the existing one specified by @id. According to the documentation here, this should work.
When I change my JSON to
it works, but that prevents me from updating related objects, as they are always considered new.