Skip to content

Commit 8da214d

Browse files
committed
more docs for #10701
1 parent e7cc447 commit 8da214d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/guide/db-active-record.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ If you are interested in the attribute values prior to their most recent modific
440440
> even if it has the same value but a different type. This is often the case when the model receives user input from
441441
> HTML forms where every value is represented as a string.
442442
> To ensure the correct type for e.g. integer values you may apply a [validation filter](input-validation.md#data-filtering):
443-
> `['attributeName', 'filter', 'filter' => 'intval']`.
443+
> `['attributeName', 'filter', 'filter' => 'intval']`. This works with all the typecasting functions of PHP like
444+
> [intval()](http://php.net/manual/en/function.intval.php), [floatval()](http://php.net/manual/en/function.floatval.php),
445+
> [boolval](http://php.net/manual/en/function.boolval.php), etc...
444446
445447
### Default Attribute Values <span id="default-attribute-values"></span>
446448

docs/guide/input-validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ with a PHP callable. For example,
219219
}]
220220
```
221221

222-
> Note: Most validators do not handle empty inputs if their [[yii\base\Validator::skipOnEmpty]] property takes
222+
> Note: Most validators do not handle empty inputs if their [[yii\validators\Validator::skipOnEmpty]] property takes
223223
the default value true. They will simply be skipped during validation if their associated attributes receive empty
224224
inputs. Among the [core validators](tutorial-core-validators.md), only the `captcha`, `default`, `filter`,
225225
`required`, and `trim` validators will handle empty inputs.

0 commit comments

Comments
 (0)