From 7db178d8bb734bc008c6afce93abaa4385652ac8 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 14 Feb 2017 20:49:56 +0300 Subject: [PATCH] Fixes #13526: added reference to loading default values from schema to DefaultValueValidator section of validation guide [skip ci] --- docs/guide/tutorial-core-validators.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guide/tutorial-core-validators.md b/docs/guide/tutorial-core-validators.md index c2a201032d..178191e3d8 100644 --- a/docs/guide/tutorial-core-validators.md +++ b/docs/guide/tutorial-core-validators.md @@ -202,7 +202,8 @@ function foo($model, $attribute) { ``` > Info: How to determine if a value is empty or not is a separate topic covered - in the [Empty Values](input-validation.md#handling-empty-inputs) section. + in the [Empty Values](input-validation.md#handling-empty-inputs) section. Default value from database + schema could be loaded via [loadDefaultValues()](db-active-record.md#default-attribute-values) method of the model. ## [[yii\validators\NumberValidator|double]]