Skip to content

Commit

Permalink
Add clarifying comment about usage of custom rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ravage84 committed May 2, 2024
1 parent 092b106 commit 1f55ebd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions en/orm/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ Creating Custom re-usable Rules

You may want to re-use custom domain rules. You can do so by creating your own invokable rule::

// Using a custom rule of the application
use App\ORM\Rule\IsUniqueWithNulls;
// ...
public function buildRules(RulesChecker $rules): RulesChecker
Expand Down

0 comments on commit 1f55ebd

Please sign in to comment.