mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #13526: added reference to loading default values from schema to DefaultValueValidator section of validation guide [skip ci]
This commit is contained in:
@ -202,7 +202,8 @@ function foo($model, $attribute) {
|
|||||||
```
|
```
|
||||||
|
|
||||||
> Info: How to determine if a value is empty or not is a separate topic covered
|
> 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>
|
## [[yii\validators\NumberValidator|double]] <span id="double"></span>
|
||||||
|
Reference in New Issue
Block a user