Closed Drachenkaetzchen closed 9 years ago
Try to remove the @Route
annotation. It is not necessary (and can cause the bug) because the bundle will auto register the route.
Ouch! Thank you :) Probably this should be mentioned in the documentation and/or checked by the annotation reader?
A mention in the doc would be cool!
Closing via #150
The documentation doesn't list an example for a custom POST operation. I tried a few things and my custom POST action is being called, however, when I attempt to serialize the newly created entity, I receive "The current request doesn't have an associated resource.". I copied some code from the cpost () method.
My configuration looks like this:
Inside my controller, I try to get the resource, which results in the exception
The current request doesn't have an associated resource.
: