{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/13","labels_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/13/comments","events_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/13/events","html_url":"https://github.com/yiisoft/yii2-mongodb/pull/13","id":67112888,"number":13,"title":"Fix for #4899 through 'Embed' feature","user":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":40,"created_at":"2015-04-08T11:58:09Z","updated_at":"2015-04-15T09:12:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/13","html_url":"https://github.com/yiisoft/yii2-mongodb/pull/13","diff_url":"https://github.com/yiisoft/yii2-mongodb/pull/13.diff","patch_url":"https://github.com/yiisoft/yii2-mongodb/pull/13.patch"},"body":"Fix for https://github.com/yiisoft/yii2/issues/4899 through 'Embed' feature.\r\nIt allows creating nested models or list of models if necessary.\r\n`yii\\mongodb\\embed\\*` may be transfered into the core framework."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/comments/93275844","html_url":"https://github.com/yiisoft/yii2-mongodb/pull/13#issuecomment-93275844","issue_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/13","id":93275844,"user":{"login":"alexandernst","id":89727,"avatar_url":"https://avatars.githubusercontent.com/u/89727?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandernst","html_url":"https://github.com/alexandernst","followers_url":"https://api.github.com/users/alexandernst/followers","following_url":"https://api.github.com/users/alexandernst/following{/other_user}","gists_url":"https://api.github.com/users/alexandernst/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandernst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandernst/subscriptions","organizations_url":"https://api.github.com/users/alexandernst/orgs","repos_url":"https://api.github.com/users/alexandernst/repos","events_url":"https://api.github.com/users/alexandernst/events{/privacy}","received_events_url":"https://api.github.com/users/alexandernst/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T09:12:03Z","updated_at":"2015-04-15T09:12:03Z","body":"@klimov-paul I'm testing your latest commits and I think something got broken.\r\n\r\nI have this in my controller:\r\n\r\n    $person = Person::findOne(['short_id' => '64fg8e']);\r\n    $person->credentialsModel->password = 'test';\r\n    var_dump($person->credentialsModel); // <--- I see \"test\" here\r\n    return $this->render(\"myview\", [\r\n        \"person\" => $person // I see the old password here\r\n    ]);\r\n\r\nI thought I'd need to call `refreshFromEmbedded()`, so I did so right after setting the password, but then the entire `credentials` field is shown as  an empty array inn my view.\r\n\r\nCan you confirm if this is a bug or I'm doing something wrong?"}}