{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/113","labels_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/113/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/113/events","html_url":"https://github.com/kartik-v/yii2-widget-select2/issues/113","id":127687175,"number":113,"title":"No work to save form","user":{"login":"bogdandin","id":9352344,"avatar_url":"https://avatars.githubusercontent.com/u/9352344?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdandin","html_url":"https://github.com/bogdandin","followers_url":"https://api.github.com/users/bogdandin/followers","following_url":"https://api.github.com/users/bogdandin/following{/other_user}","gists_url":"https://api.github.com/users/bogdandin/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdandin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdandin/subscriptions","organizations_url":"https://api.github.com/users/bogdandin/orgs","repos_url":"https://api.github.com/users/bogdandin/repos","events_url":"https://api.github.com/users/bogdandin/events{/privacy}","received_events_url":"https://api.github.com/users/bogdandin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T13:53:49Z","updated_at":"2016-01-21T07:12:07Z","closed_at":null,"body":"Hi, i replaced this \r\n   <?= $form->field($model, 'domeni_carte')->textInput() ?>\r\n\r\nwith\r\n\r\n <?php\r\n  \r\n  // Multiple select without model\r\necho Select2::widget([\r\n    'name' => 'domeni_carte',\r\n   'value' => '',\r\n  'data' => [ 0 => 'super', 2 => 'natural'],\r\n    'options' => ['multiple' => true, 'placeholder' => 'Select states ...']\r\n]);\r\n  \r\n  ?>\r\n\r\nAnd now work to save form.... no errors"},"comment":{"url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/comments/173480620","html_url":"https://github.com/kartik-v/yii2-widget-select2/issues/113#issuecomment-173480620","issue_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/113","id":173480620,"user":{"login":"iacobliviu","id":9862680,"avatar_url":"https://avatars.githubusercontent.com/u/9862680?v=3","gravatar_id":"","url":"https://api.github.com/users/iacobliviu","html_url":"https://github.com/iacobliviu","followers_url":"https://api.github.com/users/iacobliviu/followers","following_url":"https://api.github.com/users/iacobliviu/following{/other_user}","gists_url":"https://api.github.com/users/iacobliviu/gists{/gist_id}","starred_url":"https://api.github.com/users/iacobliviu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iacobliviu/subscriptions","organizations_url":"https://api.github.com/users/iacobliviu/orgs","repos_url":"https://api.github.com/users/iacobliviu/repos","events_url":"https://api.github.com/users/iacobliviu/events{/privacy}","received_events_url":"https://api.github.com/users/iacobliviu/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T07:12:07Z","updated_at":"2016-01-21T07:12:07Z","body":"Hi ,\r\n\r\nYou can use something like : \r\n$form->field($model, 'domeni_carte')->widget(Select2::classname(),\r\n[\r\n'name' => 'domeni_carte',\r\n'value' => '',\r\n'data' => [ 0 => 'super', 2 => 'natural'],\r\n'options' => ['multiple' => true, 'placeholder' => 'Select states ...']\r\n]\r\n);"}}