Closed pstephenson02 closed 4 years ago
Can you check #1173?
I did first check https://github.com/FriendsOfSymfony/FOSRestBundle/issues/1173 and its associated stackoverflow question.
I made sure that was not the issue here. The method parameters are defined correctly (or rather: are not incorrect in the way they were shown in the stack question)
@pstephenson02 Instead of getStandardProposalAction()
try getAction()
instead.
Though I think the error message should indeed be improved.
Closing as automatic route generation is deprecated: #1954
In this gist, I have 3 controllers defined. I want to establish a parent/child relationship between the cah_annotation and the standard_proposal resource. I cannot find the reason for this error:
The weird thing is, if I modify routing.yml and set the parent resource on cah_annotation to proposal:
It works fine. Even if I delete the proposal resource entry all together I get the same error.
What am I doing wrong here? These controllers are very similar, how is it that it works with the proposal resource but not standard_proposal?