Skip to content

Commit 2ef0e6a

Browse files
authored
Merge pull request #533 from RK311y/fix/model-service/build-your-own-page-mistakes
Model Service (Build Your Own Model) - Minor Mistakes
2 parents 0881856 + e902580 commit 2ef0e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/development/services/model/building-your-own.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ NOTE: **Note:** Event names typically start with a lowercase letter, but the met
126126

127127
## Relationships
128128

129-
_In-Depth Documentation:_ [Relating Models](development/services/model/relating-models.md))
129+
_In-Depth Documentation:_ [Relating Models](development/services/model/relating-models.md)
130130

131131
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:
132132

@@ -195,7 +195,7 @@ Validation rules are added using the same format as the [Validation Service](dev
195195
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:
196196

197197
protected static $_validation_rules = array(
198-
'even_number' => 'validateMultipleOf[2]'
198+
'even_number' => 'validateMultipleOf[2]',
199199
'decade' => 'validateMultipleOf[10]'
200200
);
201201

0 commit comments

Comments
 (0)