Skip to content

Commit

Permalink
Merge branch '1.6'
Browse files Browse the repository at this point in the history
* 1.6:
  feature Sylius#11054 [Documentation] Sylius Plus features documentation v1 (CoderMaggie)
  Fixed typo in services comment
  • Loading branch information
lchrusciel committed Jan 24, 2020
2 parents aac1e0b + fdaa3ee commit 53f9305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/customization/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Give it a new, custom validation group - ``[app_product]``.
# config/services.yaml
parameters:
sylius.form.type.product_translation.validation_groups: [app_product]
sylius.form.type.product.validation_groups: [app_product] # the product class also needs to be aware of the translation'a validation
sylius.form.type.product.validation_groups: [app_product] # the product class also needs to be aware of the translation's validation
Done. Now in all forms where the Product ``name`` is being used, your new validation group will be applied,
not letting users add products with name shorter than 10 characters.
Expand Down

0 comments on commit 53f9305

Please sign in to comment.