{"action":"opened","issue":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/5826","repository_url":"https://api.github.com/repos/doctrine/doctrine2","labels_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5826/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5826/comments","events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5826/events","html_url":"https://github.com/doctrine/doctrine2/issues/5826","id":155007941,"number":5826,"title":"Merge XML Mappings","user":{"login":"sourcerer-mike","id":2559177,"avatar_url":"https://avatars.githubusercontent.com/u/2559177?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcerer-mike","html_url":"https://github.com/sourcerer-mike","followers_url":"https://api.github.com/users/sourcerer-mike/followers","following_url":"https://api.github.com/users/sourcerer-mike/following{/other_user}","gists_url":"https://api.github.com/users/sourcerer-mike/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcerer-mike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcerer-mike/subscriptions","organizations_url":"https://api.github.com/users/sourcerer-mike/orgs","repos_url":"https://api.github.com/users/sourcerer-mike/repos","events_url":"https://api.github.com/users/sourcerer-mike/events{/privacy}","received_events_url":"https://api.github.com/users/sourcerer-mike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-16T11:06:15Z","updated_at":"2016-05-16T11:06:15Z","closed_at":null,"body":"Hello. Imagine two XML files that were given to the `Doctrine\\ORM\\Mapping\\Driver\\XmlDriver` (maybe, I don't know Doctrine very well). The first mapping defines an entity:\r\n\r\n    <entity name=\"Crmp\\CrmBundle\\Entity\\Foo1405\" table=\"foo1405\">\r\n        <id name=\"id\" type=\"integer\">\r\n            <generator strategy=\"AUTO\" />\r\n        </id>\r\n        <field name=\"name\" type=\"string\" length=\"100\" />\r\n    </entity>\r\n\r\nThe second XML Mapping defines it's own entity and/or extends previous ones:\r\n\r\n    <entity name=\"Crmp\\CrmBundle\\Entity\\Bar1405\" table=\"bar1405\">\r\n        <id name=\"id\" type=\"integer\">\r\n            <generator strategy=\"AUTO\" />\r\n        </id>\r\n        <field name=\"name\" type=\"string\" length=\"100\" />\r\n    </entity>\r\n\r\n    <entity name=\"Crmp\\CrmBundle\\Entity\\Foo1405\">\r\n        <field name=\"additional\" type=\"string\" />\r\n        <one-to-many target-entity=\"Crmp\\AcquisitionBundle\\Entity\\Bar1405\"\r\n                     mapped-by=\"children\"\r\n                     field=\"children\">\r\n        </one-to-many>\r\n    </entity>\r\n\r\nUnfortunately the one-to-many relation for \"Foo1405\" is ignored. So is the field \"additional\". The generated code does not contain the extensions. I hope doctrine makes it work some day because it opens new ways of writing plugins for apps that base on Doctrine."}}