Skip to content

RulesChecker::remove() #17610

@PaulHendriks

Description

@PaulHendriks

Description

The Validator provides a remove() method to remove existing rule(s), the RulesChecker however, does not.
If i extend a Table and want to use it's rules, except for one, i'd have to copy/paste the rules i want, omitting the one i don't want, or the one i want to change.

I'd rather not duplicate code, if the rules of the parent change some time in the future, these changes will be lost to the child.

CakePHP Version

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions