From db0ccec1152d8524c28bd8dac883f318ba09ab38 Mon Sep 17 00:00:00 2001 From: MolbioUnige Date: Thu, 17 Oct 2024 10:12:54 +0200 Subject: [PATCH] Update validation.rst Rules added through the add method are also checked during deletion --- en/orm/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/orm/validation.rst b/en/orm/validation.rst index 46fc44dd8c..6d0eabe940 100644 --- a/en/orm/validation.rst +++ b/en/orm/validation.rst @@ -297,7 +297,7 @@ class:: // In a table class public function buildRules(RulesChecker $rules): RulesChecker { - // Add a rule that is applied for create and update operations + // Add a rule that is applied for create, update and delete operations $rules->add(function ($entity, $options) { // Return a boolean to indicate pass/failure }, 'ruleName');