From 60b82cb25f700170a0a05a52539a5e96bf7fa29f Mon Sep 17 00:00:00 2001 From: River Kelly Date: Mon, 5 Dec 2022 12:22:26 -0700 Subject: [PATCH 1/2] Add missing comma --- docs/development/services/model/building-your-own.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/services/model/building-your-own.md b/docs/development/services/model/building-your-own.md index 1fa1cc0ab..930b0b9b5 100755 --- a/docs/development/services/model/building-your-own.md +++ b/docs/development/services/model/building-your-own.md @@ -195,7 +195,7 @@ Validation rules are added using the same format as the [Validation Service](dev You can also create your own local validation rules. These one-off rules can be added directly to the model class by creating a public method whose name starts with `validate`. The method will be treated as a [custom validation rule](development/services/validation.md#custom-rules). On validation it will receive the property name, current value, rule parameters, and the rule object. The method should return `TRUE` on success, and an error string or language key on failure: protected static $_validation_rules = array( - 'even_number' => 'validateMultipleOf[2]' + 'even_number' => 'validateMultipleOf[2]', 'decade' => 'validateMultipleOf[10]' ); From e9025807d3f9cfa0cae30664c14ade82dbfcf41b Mon Sep 17 00:00:00 2001 From: River Kelly Date: Mon, 5 Dec 2022 12:24:37 -0700 Subject: [PATCH 2/2] Remove trailing paren ')' --- docs/development/services/model/building-your-own.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/services/model/building-your-own.md b/docs/development/services/model/building-your-own.md index 930b0b9b5..6c6b79875 100755 --- a/docs/development/services/model/building-your-own.md +++ b/docs/development/services/model/building-your-own.md @@ -126,7 +126,7 @@ NOTE: **Note:** Event names typically start with a lowercase letter, but the met ## Relationships -_In-Depth Documentation:_ [Relating Models](development/services/model/relating-models.md)) +_In-Depth Documentation:_ [Relating Models](development/services/model/relating-models.md) Models can be related to other models using just a little bit of metadata. They are defined on a `$_relationships` metadata array. The array keys should be the relationship names, and their values will be a description of the relationship: