DifferentRule
trait DifferentRule (View source)
Methods
void
compileDifferent(string $key, string $masque)
Compile Different Rule
Details
protected void
compileDifferent(string $key, string $masque)
Compile Different Rule
[different:other_field] Check that the field's value is different from another field's value. Strict comparison; missing fields are treated as null (so a present field is automatically "different" from a missing one).