Skip to content

Commit

Permalink
Update Resources/doc/param_converter.markdown
Browse files Browse the repository at this point in the history
add comment for last modifications of SensioFrameworkExtraBundle
  • Loading branch information
jaugustin committed Jul 25, 2012
1 parent 8299a76 commit fb1095c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Resources/doc/param_converter.markdown
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit fb1095c

Please sign in to comment.