Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PropelParamConverter] add exclude option for Pk and fields, with tests a #58

Merged
merged 1 commit into from Oct 7, 2011
Merged

[PropelParamConverter] add exclude option for Pk and fields, with tests a #58

merged 1 commit into from Oct 7, 2011

Conversation

jaugustin
Copy link
Member

hi,

This add an exclude option that could be use to exclude request attributes from being use by the converter

If you have a route like /my-route/{slug}/{name}/edit/{id}
You can exclude "name" and "slug" by setting the option "exclude" :

<?php

/**
 * @ParamConverter("post", class="BlogBundle\Model\Post", options={"exclude"={"name", "slug"}})
 */
public function myAction(Post $post)
{
}

willdurand added a commit that referenced this pull request Oct 7, 2011
[PropelParamConverter] add exclude option for Pk and fields, with tests a
@willdurand willdurand merged commit 1368749 into propelorm:master Oct 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants