diff --git a/docs/development/services/model/building-your-own.md b/docs/development/services/model/building-your-own.md index 1fa1cc0ab..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: @@ -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]' );