{"action":"created","issue":{"url":"https://api.github.com/repos/tom--/yii2-dynamic-ar/issues/16","repository_url":"https://api.github.com/repos/tom--/yii2-dynamic-ar","labels_url":"https://api.github.com/repos/tom--/yii2-dynamic-ar/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/tom--/yii2-dynamic-ar/issues/16/comments","events_url":"https://api.github.com/repos/tom--/yii2-dynamic-ar/issues/16/events","html_url":"https://github.com/tom--/yii2-dynamic-ar/issues/16","id":183755809,"number":16,"title":"Failed to save dynamic attributes from POST","user":{"login":"howardEagle","id":3662421,"avatar_url":"https://avatars.githubusercontent.com/u/3662421?v=3","gravatar_id":"","url":"https://api.github.com/users/howardEagle","html_url":"https://github.com/howardEagle","followers_url":"https://api.github.com/users/howardEagle/followers","following_url":"https://api.github.com/users/howardEagle/following{/other_user}","gists_url":"https://api.github.com/users/howardEagle/gists{/gist_id}","starred_url":"https://api.github.com/users/howardEagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardEagle/subscriptions","organizations_url":"https://api.github.com/users/howardEagle/orgs","repos_url":"https://api.github.com/users/howardEagle/repos","events_url":"https://api.github.com/users/howardEagle/events{/privacy}","received_events_url":"https://api.github.com/users/howardEagle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-18T17:43:53Z","updated_at":"2016-10-22T08:03:31Z","closed_at":null,"body":"If add to from dynamic field e.g:\r\n```\r\n$form->field($product, 'dynamic_attribute_name')\r\n                ->dropDownList(explode(',', $attribute->variants), ['required' => $attribute->required])\r\n                ->label($attribute->title);\r\n```\r\nthose attributes will not saved."},"comment":{"url":"https://api.github.com/repos/tom--/yii2-dynamic-ar/issues/comments/255514009","html_url":"https://github.com/tom--/yii2-dynamic-ar/issues/16#issuecomment-255514009","issue_url":"https://api.github.com/repos/tom--/yii2-dynamic-ar/issues/16","id":255514009,"user":{"login":"dakipro","id":1586291,"avatar_url":"https://avatars.githubusercontent.com/u/1586291?v=3","gravatar_id":"","url":"https://api.github.com/users/dakipro","html_url":"https://github.com/dakipro","followers_url":"https://api.github.com/users/dakipro/followers","following_url":"https://api.github.com/users/dakipro/following{/other_user}","gists_url":"https://api.github.com/users/dakipro/gists{/gist_id}","starred_url":"https://api.github.com/users/dakipro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakipro/subscriptions","organizations_url":"https://api.github.com/users/dakipro/orgs","repos_url":"https://api.github.com/users/dakipro/repos","events_url":"https://api.github.com/users/dakipro/events{/privacy}","received_events_url":"https://api.github.com/users/dakipro/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T08:03:31Z","updated_at":"2016-10-22T08:03:31Z","body":"I also get null when I try to access attribute. I tried basic\r\n\r\n$model = $this->findModel($id);\r\n$model->specs = 'test';\r\n$model->save();\r\n\r\nand I see [BLOB - 19 B] in database, then when I load model and dump it I get \r\n.....\r\nprivate _attributes -> array (9) [\r\n        'id' => integer 2\r\n        'dynamic_attribute' => string UTF-8 (19) \"?????????specs!test\"\r\n    ]\r\n\r\nhowever \r\n$model->getAttribute('specs')   just returns null\r\n\r\nI tried different combinations and, but no success.\r\nUsing all the latest versions of yii2, php7 and mariadb\r\nWhere could I start debugging and fixing?\r\nAny advice would be appreciated :)"}}
{"actor":{"display_login":"dakipro"}}