{"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":39,"created_at":"2015-04-08T11:58:09Z","updated_at":"2015-04-15T08:22:22Z","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/93257447","html_url":"https://github.com/yiisoft/yii2-mongodb/pull/13#issuecomment-93257447","issue_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/13","id":93257447,"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},"created_at":"2015-04-15T08:22:22Z","updated_at":"2015-04-15T08:22:22Z","body":"> Does this allow for updating and deleting specific sub/embedded document(s)?\r\n\r\nUpdating sure. Deleting - unlikely. You may set embedded entiry to be null, which after `refreshFromEmbedded` will apply `null` value to the source attribute, but the attribute itself will remain.\r\n\r\n> Does this also allow for multiple of the same type of sub/embedded document?\r\n\r\nI am unsure I understand this. Perhaps `mapEmbeddedList()` should work for you.\r\n\r\n> .e. will we be able to select Yii2 from frameworks and delete or update it?\r\n\r\nOnly iterating over embedded related to 'frameworks'. You may unset any array element from it - changes will be applied."}}