Update Resources/doc/param_converter.markdown

add comment for last modifications of SensioFrameworkExtraBundle
This commit is contained in:
Jérémie Augustin 2012-07-25 23:48:40 +03:00
parent 8299a76059
commit fb1095cbe4

View file

@ -1,7 +1,7 @@
The PropelParamConverter
========================
You can use the PropelParamConverter with the [SensioFrameworkExtraBundle](http://github.com/sensio/SensioFrameworkExtraBundle).
You can use the `PropelParamConverter` with the [SensioFrameworkExtraBundle](http://github.com/sensio/SensioFrameworkExtraBundle).
You just need to put the right _Annotation_ on top of your controller:
``` php
@ -27,6 +27,22 @@ public function myAction(Post $post)
}
```
**New** with last version of `SensioFrameworkExtraBundle`,
you can ommit the `class` parameter if your controller parameter is typed,
this is usefull when you need to set extra `options`.
``` php
<?php
use BlogBundle\Model\Post;
/**
* @ParamConverter("post")
*/
public function myAction(Post $post)
{
}
```
#### Exclude some parameters ####
You can exclude some attributes from being used by the converter: