Fixed doc
This commit is contained in:
parent
5fc17d5798
commit
145d4fa9ca
|
@ -20,7 +20,7 @@ Currently supports:
|
|||
|
||||
For documentation, see:
|
||||
|
||||
Resources/doc
|
||||
Resources/doc/
|
||||
|
||||
For license, see:
|
||||
|
||||
|
|
|
@ -312,15 +312,15 @@ Propel ParamConverter
|
|||
---------------------
|
||||
|
||||
You can use the Propel ParamConverter with the SensioFrameworkExtraBundle.
|
||||
You just need to put the right Annotation on top of your controller:
|
||||
You just need to put the right _Annotation_ on top of your controller:
|
||||
|
||||
``` php
|
||||
/**
|
||||
* @ParamConverter("post", class="BlogBundle\Model\Post")
|
||||
*/
|
||||
public function myControler(Post $post)
|
||||
public function myAction(Post $post)
|
||||
{
|
||||
}
|
||||
```
|
||||
|
||||
your request need to have an Id parameter or any field as parameter (slug, title, ...)
|
||||
Your request need to have an `id` parameter or any field as parameter (slug, title, ...).
|
||||
|
|
Loading…
Reference in a new issue