Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have embedded form type with validation group which is important for parent form, but according to this http://symfony.com/doc/current/reference/forms/types/form.html#cascade-validation it's not considered. Is there some way to force it's usage?
CurrencyBundle\Entity\Price: constraints: - CurrencyBundle\Validator\Constraints\OptionalPrice: groups: [Optional] properties: value: - NotBlank: groups: [Default] - Type: groups: [Default, Optional] type: numeric - Range: groups: [Default, Optional] min: 0 currency: - NotBlank: groups: [Default] - Currency: groups: [Default, Optional] RFPBundle\Entity\Request: properties: requestProducts: - Valid: ~ RFPBundle\Entity\RequestProduct: properties: requestProductItems: - Valid: ~ RFPBundle\Entity\RequestProductItem: properties: price: - Valid: ~ class RequestProductItemType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add( 'price', PriceType::NAME, [ 'currency_empty_value' => null, 'label' => 'rfp.requestproductitem.price.label', 'validation_groups' => ['Optional'], ] ); }
The text was updated successfully, but these errors were encountered:
If I understood your report correctly this is a duplicate of #3622.
The group is always propagated to the cascaded object with the Valid constraint. See #9650 (comment) and #9650 (comment)
Valid
Sorry, something went wrong.
No branches or pull requests
I have embedded form type with validation group which is important for parent form, but according to this http://symfony.com/doc/current/reference/forms/types/form.html#cascade-validation it's not considered. Is there some way to force it's usage?
The text was updated successfully, but these errors were encountered: