{"action":"created","issue":{"url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/60","labels_url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/60/comments","events_url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/60/events","html_url":"https://github.com/expressmapper/ExpressMapper/issues/60","id":117111713,"number":60,"title":"Collection with destination child data not mapping correctly","user":{"login":"bogatykh","id":6083952,"avatar_url":"https://avatars.githubusercontent.com/u/6083952?v=3","gravatar_id":"","url":"https://api.github.com/users/bogatykh","html_url":"https://github.com/bogatykh","followers_url":"https://api.github.com/users/bogatykh/followers","following_url":"https://api.github.com/users/bogatykh/following{/other_user}","gists_url":"https://api.github.com/users/bogatykh/gists{/gist_id}","starred_url":"https://api.github.com/users/bogatykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogatykh/subscriptions","organizations_url":"https://api.github.com/users/bogatykh/orgs","repos_url":"https://api.github.com/users/bogatykh/repos","events_url":"https://api.github.com/users/bogatykh/events{/privacy}","received_events_url":"https://api.github.com/users/bogatykh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expressmapper/ExpressMapper/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"open","locked":false,"assignee":{"login":"bogatykh","id":6083952,"avatar_url":"https://avatars.githubusercontent.com/u/6083952?v=3","gravatar_id":"","url":"https://api.github.com/users/bogatykh","html_url":"https://github.com/bogatykh","followers_url":"https://api.github.com/users/bogatykh/followers","following_url":"https://api.github.com/users/bogatykh/following{/other_user}","gists_url":"https://api.github.com/users/bogatykh/gists{/gist_id}","starred_url":"https://api.github.com/users/bogatykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogatykh/subscriptions","organizations_url":"https://api.github.com/users/bogatykh/orgs","repos_url":"https://api.github.com/users/bogatykh/repos","events_url":"https://api.github.com/users/bogatykh/events{/privacy}","received_events_url":"https://api.github.com/users/bogatykh/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-16T12:18:53Z","updated_at":"2015-11-16T15:34:25Z","closed_at":null,"body":"public class ObjectA\r\n{\r\n    public string Code { get; set; }\r\n}\r\n\r\npublic class ObjectB\r\n{\r\n    public string Code { get; set; }\r\n\r\n    public List<ObjectA> Childs { get; set; }\r\n}\r\n\r\npublic class DbObjectA\r\n{\r\n    public string Code { get; set; }\r\n}\r\n\r\npublic class DbObjectB\r\n{\r\n    public string Code { get; set; }\r\n\r\n    public DbObjectA[] DbObjectA { get; set; }\r\n}\r\n\r\nstatic void Main(string[] args)\r\n{\r\n    Mapper.Register<DbObjectA, ObjectA>();\r\n    Mapper.Register<DbObjectB, ObjectB>().\r\n        Member(x => x.Childs, x => x.DbObjectA);\r\n    Mapper.Compile();\r\n\r\n    var objectB1 = new DbObjectB()\r\n    {\r\n        Code = \"ObjectB1\",\r\n        DbObjectA = new DbObjectA[] { new DbObjectA() { Code = \"ObjectA1\" } }\r\n    };\r\n\r\n    var objectB2 = new DbObjectB()\r\n    {\r\n        Code = \"ObjectB2\",\r\n        DbObjectA = new DbObjectA[] { new DbObjectA() { Code = \"ObjectA2\" } }\r\n    };\r\n\r\n    DbObjectB[] objectBArr = new DbObjectB[] { objectB1, objectB2 };\r\n\r\n    List<ObjectB> result = new List<ObjectB>();\r\n\r\n    Mapper.Map<DbObjectB[], List<ObjectB>>(objectBArr, result);\r\n}\r\n\r\nboth result[0].Code and result[1].Code will contain \"ObjectB2\" - bug.\r\nalso, result[0].Childs will contain the same data as from result[1].Childs."},"comment":{"url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/comments/157069914","html_url":"https://github.com/expressmapper/ExpressMapper/issues/60#issuecomment-157069914","issue_url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/60","id":157069914,"user":{"login":"anisimovyuriy","id":3758138,"avatar_url":"https://avatars.githubusercontent.com/u/3758138?v=3","gravatar_id":"","url":"https://api.github.com/users/anisimovyuriy","html_url":"https://github.com/anisimovyuriy","followers_url":"https://api.github.com/users/anisimovyuriy/followers","following_url":"https://api.github.com/users/anisimovyuriy/following{/other_user}","gists_url":"https://api.github.com/users/anisimovyuriy/gists{/gist_id}","starred_url":"https://api.github.com/users/anisimovyuriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anisimovyuriy/subscriptions","organizations_url":"https://api.github.com/users/anisimovyuriy/orgs","repos_url":"https://api.github.com/users/anisimovyuriy/repos","events_url":"https://api.github.com/users/anisimovyuriy/events{/privacy}","received_events_url":"https://api.github.com/users/anisimovyuriy/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T15:34:25Z","updated_at":"2015-11-16T15:34:25Z","body":"#56, #58 "}}