Feature #58151
closedAccess other properties in validator
0%
Description
It would be nice if i write a validator that i could access other properties to check against.
For example a ConfirmationValidator (proeprty x has to an exact copy of property y)
or DepartureDateValidator (Date has to be +1day compared to other Date)
I know i could solve that in a specific validation in my controller, but in my special case its not possible because i create the validation dynamically (extensible requesting objects passed as array and the validationconjunction is being created in the requestcontroller by some identifier for the requesttype)
So i would have to implement some kind of hook where this solution would be much easier.
When calling a Validator simply pass the object that is beeing validated would be enough.
I could really use this feature.
What you think about it?
Updated by Philipp Wrann about 10 years ago
Nevermind, found the manual :)
Updated by Frederic Gaus almost 9 years ago
If I get you right, this is not an issue any longer. Thus this ticket can be closed. If you think this ticket is still open, contact us on slack or open a new ticket. Thanks!