custom action with params in edit part

11 views
Skip to first unread message

alex baron

unread,
Mar 4, 2014, 11:08:37 AM3/4/14
to symfony2adm...@googlegroups.com
Hello 

i would like to add a custom action in my edit via generator.yml.

now: i use route to define the route action but i would like to pass params like this

```
edit:
        params:
            actions:
                save: ~
                list: ~
                init: 
                    route: initInventaire
                    params: 
                        - pk : ClntInventaire.getId

```

i've got this error : 

Some mandatory parameters are missing ("pk") to generate a URL for route "initInventaire"


what should i do  ?

thanks.


Reply all
Reply to author
Forward
0 new messages