Skip to content

Commit e341e20

Browse files
committed
added info to README
1 parent 07e85a9 commit e341e20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ To correctly attach behavior you have to provide valid configuration values to f
1313

1414
Your embedded models can also embed another models.
1515
When validate will be called for your primary model it will be called for all your embedded models and fields in your primary model coreesponding to embedded models will be correctly populated with error messages.
16-
Embedded models will be automatically created by behavior when yor model is populated from database or when it is populated with `Model::load()` data from request
16+
Embedded models will be automatically created by behavior when yor model is populated from database or when it is populated with `Model::load()` data from request.
17+
To auto populate field that is embedded model with `Model::load()` you need to add this field to `rules()` as `safe`
1718

1819

1920

0 commit comments

Comments
 (0)