For example this annotation
public $start_date;
/**
* @Assert\GreaterThan(propertyPath = "start_date", message = "End smaller than start")
*/
public $end_date;
Will be processed with GreaterThan like it should be:
function SymfonyComponentValidatorConstraintsGreaterThan() {
this.message = '';
this.value = null;
this.validate = function (value) {
var f = FpJsFormValidator;
if (f.isValueEmty(value) || value > this.value) {
return [];
} else {
return [
this.message
.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))
.replace('{{ compared_value }}', FpJsBaseConstraint.formatValue(this.value))
];
}
}
}
but this.value is always null here and therefor the field is never valid.
I could not find any references in the code to propertyPath but it is parsed correctly to the client side, just never used. Anyway you will never know what is the actual element in this case
For example this annotation
Will be processed with GreaterThan like it should be:
but
this.valueis always null here and therefor the field is never valid.I could not find any references in the code to
propertyPathbut it is parsed correctly to the client side, just never used. Anyway you will never know what is the actual element in this case