{"action":"created","issue":{"url":"https://api.github.com/repos/OmgDef/yii2-multilingual-behavior/issues/56","repository_url":"https://api.github.com/repos/OmgDef/yii2-multilingual-behavior","labels_url":"https://api.github.com/repos/OmgDef/yii2-multilingual-behavior/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/OmgDef/yii2-multilingual-behavior/issues/56/comments","events_url":"https://api.github.com/repos/OmgDef/yii2-multilingual-behavior/issues/56/events","html_url":"https://github.com/OmgDef/yii2-multilingual-behavior/issues/56","id":185425205,"number":56,"title":"Не сохраняется модель","user":{"login":"quinlena","id":5094145,"avatar_url":"https://avatars.githubusercontent.com/u/5094145?v=3","gravatar_id":"","url":"https://api.github.com/users/quinlena","html_url":"https://github.com/quinlena","followers_url":"https://api.github.com/users/quinlena/followers","following_url":"https://api.github.com/users/quinlena/following{/other_user}","gists_url":"https://api.github.com/users/quinlena/gists{/gist_id}","starred_url":"https://api.github.com/users/quinlena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quinlena/subscriptions","organizations_url":"https://api.github.com/users/quinlena/orgs","repos_url":"https://api.github.com/users/quinlena/repos","events_url":"https://api.github.com/users/quinlena/events{/privacy}","received_events_url":"https://api.github.com/users/quinlena/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-26T15:19:08Z","updated_at":"2016-10-28T16:37:40Z","closed_at":null,"body":"Здравствуйте!\r\nВозникла сложность, если в контроллере указать \r\n` protected function findModel($id)\r\n    {\r\n        if (($model = Post::find()->where(['id' => $id])->localized()->one()) !== null) {\r\n            return $model;\r\n        } else {\r\n            throw new NotFoundHttpException('The requested page does not exist.');\r\n        }\r\n    }`\r\nТо выбираются и подставляются в зависимости от языка верные значения в поля, но при сохранении не сохраняются. Я так понимаю, для сохранения нужно писать свой behavior? Если указать multilingual(), то сохраняет, но сложность в том, что тогда во view нужно указывать названия атрибутов вида title_en, что затруднит добавление новых языков и их перевод. Подскажите, пожалуйста, что нужно сделать?"},"comment":{"url":"https://api.github.com/repos/OmgDef/yii2-multilingual-behavior/issues/comments/256968013","html_url":"https://github.com/OmgDef/yii2-multilingual-behavior/issues/56#issuecomment-256968013","issue_url":"https://api.github.com/repos/OmgDef/yii2-multilingual-behavior/issues/56","id":256968013,"user":{"login":"OmgDef","id":6762337,"avatar_url":"https://avatars.githubusercontent.com/u/6762337?v=3","gravatar_id":"","url":"https://api.github.com/users/OmgDef","html_url":"https://github.com/OmgDef","followers_url":"https://api.github.com/users/OmgDef/followers","following_url":"https://api.github.com/users/OmgDef/following{/other_user}","gists_url":"https://api.github.com/users/OmgDef/gists{/gist_id}","starred_url":"https://api.github.com/users/OmgDef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmgDef/subscriptions","organizations_url":"https://api.github.com/users/OmgDef/orgs","repos_url":"https://api.github.com/users/OmgDef/repos","events_url":"https://api.github.com/users/OmgDef/events{/privacy}","received_events_url":"https://api.github.com/users/OmgDef/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T16:37:39Z","updated_at":"2016-10-28T16:37:39Z","body":"Здравствуйте, @quinlena! Если я вас правильно понял, то для динамического добавления переводов, без необходимости наличия фоллбэка на язык по умолчанию, я советую вам использовать расширение https://github.com/creocoder/yii2-translateable"}}
{"actor":{"display_login":"OmgDef"}}