symfony/symfony — Issue #2841: The validator does not support inheritance properly for getter rules
Author: stof
Created: 2011-12-11 16:34:18+00:00
State: open
Labels: Bug, Validator

The Validator component uses Reflection, even when doing the validation on getters. This means that a child class cannot overwrite a getter as the validator will still use the parent method.
this is totally confusing (I just spent quite 2 hours debugging my form validation before thinking about Reflection being used) and does not make sense IMO (when overwriting a method, we expect the child one to be called)
what do you think about it ?