php - FOSRestBundle parent/child resource error: Every parent controller must have `get{SINGULAR}Action($id)` method -


in this gist, have 3 controllers defined. want establish parent/child relationship between cah_annotation , standard_proposal resource. cannot find reason error:

$ ./app/console debug:router  [symfony\component\config\exception\fileloaderloadexception]                                                     every parent controller must have `get{singular}action($id)` method                                              {singular} singular form of associated object in /var/www/html/cdpaccess/src/icc/proposalbundle/res   ources/config/routing.yml (which being imported "/var/www/html/cdpaccess/app/config/routing.yml").  [invalidargumentexception]                                            every parent controller must have `get{singular}action($id)` method   {singular} singular form of associated object 

the weird thing is, if modify routing.yml , set parent resource on cah_annotation proposal:

cah_annotation:     parent: proposal 

it works fine. if delete proposal resource entry same error.

what doing wrong here? these controllers very similar, how it works proposal resource not standard_proposal?

i using friendsofsymfony/rest-bundle 1.7.2.

i did see this question already. not appear same issue worked through 1 already.

maybe forgetting add, in nested entity, nested id parameter in get{singular}action($id):

class subentitycontroller {      ...      getsubentityaction($subid, $id) {            ...         } } 

... getsubsub....($subsubid, $subid, $id) ... on, on each nested entity.

this 1 works me.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -