{"issue":{"state":"open","pull_request":{"diff_url":"https://github.com/doctrine/mongodb-odm/pull/194.diff","html_url":"https://github.com/doctrine/mongodb-odm/pull/194","patch_url":"https://github.com/doctrine/mongodb-odm/pull/194.patch"},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/391f0c678ce2f62b7cbfa33cb0b2f235?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"391f0c678ce2f62b7cbfa33cb0b2f235","url":"https://api.github.com/users/IamPersistent","login":"IamPersistent","id":16964},"labels":[],"assignee":null,"updated_at":"2011-11-16T05:36:50Z","comments":1,"closed_at":null,"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/194","body":"Currently, when loading \"many\" data using the set strategy, the key is lost when the data is loaded. This code corrects that problem.","html_url":"https://github.com/doctrine/mongodb-odm/issues/194","title":"[bug fix] Load keys on set strategy on embed-many and reference-many","number":194,"id":2253080,"created_at":"2011-11-16T05:25:15Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/097f39f4cd9a83a03d92c246a2797880?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"097f39f4cd9a83a03d92c246a2797880","url":"https://api.github.com/users/kriswallsmith","login":"kriswallsmith","id":33886},"updated_at":"2011-11-16T05:36:50Z","url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/comments/2755964","body":"Does this patch enable this sort of thing?\r\n\r\n```php\r\n<?php\r\n\r\nclass Person\r\n{\r\n  /** @ReferenceMany */\r\n  public $relations = array();\r\n}\r\n\r\n$me = new Person();\r\n$mom = new Person();\r\n$me->relations['mother'] = $mom;\r\n```","id":2755964,"created_at":"2011-11-16T05:36:50Z"}}