I\'ve got a form with extra fields added with the option mapped to false. But when I try to validate my form, it won\'t pass indicating \"this valu
Symfony 3.4 expression constraint based on non mapped fields :
$resolver->setDefaults([
'data_class' => MyClass::class,
'constraints' => [
new Expression([
'expression' => 'this["endTime"].getData() >= this["startTime"].getData()',
'message' => 'L\'heure de fin doit être plus grande ou égale à l\'heure de début'
])
]
]);