-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
Hi,
It seems to not be possible at this time.
Instead of using the @Assert\Expression constraint, sometimes, it could be great to support expressions directly in others constraints like:
/**
* @Assert\Range(
* min = "this.startDate",
* max = "this.startDate + 10 days"
* )
*/
protected $endDate;
/**
* @Assert\GreaterThan("this.startDate")
*/
protected $endDate;
// etc...
mik-laj and ro0NL