We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! I have some question. I make update Event row and the next code is works:
$m = Event::find()->multilingual()->where(['id' => $id])->one(); $m->title = $fd['title']; $m->save();
But
$m = Event::find()->multilingual()->where(['id' => $id])->one(); $m->setAttributes($fd); $m->save();
Doesn't save.
$m = Event::find()->multilingual()->where(['id' => $id])->one(); $m->attributes = $fd; $m->save();
Also doesn't save. Is it correct behaviour?
$m = Event::find()->multilingual()->where(['id' => $id])->one(); foreach ($fd as $key => $val) { $m->{$key} = $val; } $m->save();
This is again works and save.
The text was updated successfully, but these errors were encountered:
Hi! I guess you didn't mention the title attribute in your validation rules in the Event model
title
Sorry, something went wrong.
You are right. It were dynamically add rules and wasn't this attribute on core model. Thanks!
No branches or pull requests
Hello!
I have some question.
I make update Event row and the next code is works:
But
Doesn't save.
Also doesn't save. Is it correct behaviour?
This is again works and save.
The text was updated successfully, but these errors were encountered: