diff --git a/validation.rst b/validation.rst index 412676a908b..50322a025e6 100644 --- a/validation.rst +++ b/validation.rst @@ -108,10 +108,22 @@ following: } } -.. tip:: +Protected and private properties can also be validated, as well as "getter" +methods (see :ref:`validator-constraint-targets`). + +.. note:: + + If you want to store validation config as YAML or XML, you'll need to configure + the path: - Protected and private properties can also be validated, as well as "getter" - methods (see :ref:`validator-constraint-targets`). + .. code-block:: diff + + # config/packages/framework.yaml + framework: + # ... + validation: + mapping: + paths: ['%kernel.project_dir%/config/validator'] .. index:: single: Validation; Using the validator