You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@ To correctly attach behavior you have to provide valid configuration values to f
13
13
14
14
Your embedded models can also embed another models.
15
15
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`
0 commit comments