Fixes #13526: added reference to loading default values from schema to DefaultValueValidator section of validation guide [skip ci]

This commit is contained in:
Alexander Makarov
2017-02-14 20:49:56 +03:00
parent 2d9424009f
commit 7db178d8bb

View File

@ -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]] <span id="double"></span>