-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
After upgrading Yii to version 2.0.14 creating new translations not working #15
Comments
Next algorithm works too $template = new EmailTemplate();
$template->key = 'test';
$translation = $template->getTranslation('en');
$translation->subject = 'subject test';
$translation->body = 'body test';
$translation->hint = 'hint test';
$template->save();
$template->link('translations', $translation); cc @kadarpeter |
@creocoder I created pull request with fix of this issue. Can you check it, please? |
Here is available supported new cc @kadarpeter @alex2549 |
@greeflas Thank YOU A LOT! Cause I faced that problem today as well, so your https://github.com/yiimaker/yii2-translatable behavior save me. |
@SanChes-tanker Yes, I can. Please create an issue for this. |
Fixes creocoder#15: Fixed saving translations
Before Yii version 2.0.14, the following code works well:
After upgrading Yii to version 2.0.14, the above code does not working. The related records in the
post_translation
table are not created. If I update the newly createdpost
record, the translations are created in thepost_translation
table.The text was updated successfully, but these errors were encountered: