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
{{ message }}
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
Update. There is no sense depends on type of the attribute. Scenario should be applied before assigning attributes (after object will be instatiated to be sure in the future) because setAttributes checks safe ability of attributes depends on current scenario. You do it before validate. Its too late.
Yep, you’re right.
Bug fix is on its way. The master branch contains a first fix but there’s still one issue. I will hopefully publish the full fix tomorrow.
My ActiveRecord class has the attribute
But i have got an error "Failed to set unsafe attribute 'agree' in 'app\models\user\Profile'."
I found out we have to set scenario here if scenario provided by behavior
yii2-save-relations-behavior/src/SaveRelationsBehavior.php
Line 255 in 5e2fe79
Anyway it helps me to work/ Isn't it the right case?
The text was updated successfully, but these errors were encountered: