-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Form] Configuration of custom adders/removers #1227
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
Comments
Most of what we need is documented in #1057 - this is a placeholder for the added detail of how the "singular" version of the adder/remove method can be configured. For example, the normal: $propertyPath = new PropertyPath('article.tags'); versus the customized: $propertyPath = new PropertyPath('article.genera|genus'); We would show this as the $builder->add('tags', 'collection', array(
'property_path' => 'tags|tag'),
)); |
Is it possible that the behaviour has changed?
|
@weaverryan the support of custom pluralization was reverted before the release because it was not considered good enough in its state |
@stof So this is currently not possible at all? |
@peterrehm no, it is not possible to use another singular than the one guessed by Symfony |
@weaverryan So you can close this issue. Thanks @stof for the clarification. |
Thank you @stof & @peterrehm Closing this one :) |
Set the "property_path" option as described in symfony/symfony#3819
The text was updated successfully, but these errors were encountered: