Project

General

Profile

Actions

Feature #58151

closed

Access other properties in validator

Added by Philipp Wrann about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2014-04-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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?

Actions #2

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!

Actions #3

Updated by Frederic Gaus almost 9 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF