{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/441","labels_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/441/comments","events_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/441/events","html_url":"https://github.com/doctrine/DoctrineBundle/issues/441","id":90678502,"number":441,"title":"Doctrine mapping import ignores filter when checking tables for primary keys","user":{"login":"markusgillmeister","id":3785901,"avatar_url":"https://avatars.githubusercontent.com/u/3785901?v=3","gravatar_id":"","url":"https://api.github.com/users/markusgillmeister","html_url":"https://github.com/markusgillmeister","followers_url":"https://api.github.com/users/markusgillmeister/followers","following_url":"https://api.github.com/users/markusgillmeister/following{/other_user}","gists_url":"https://api.github.com/users/markusgillmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/markusgillmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusgillmeister/subscriptions","organizations_url":"https://api.github.com/users/markusgillmeister/orgs","repos_url":"https://api.github.com/users/markusgillmeister/repos","events_url":"https://api.github.com/users/markusgillmeister/events{/privacy}","received_events_url":"https://api.github.com/users/markusgillmeister/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-24T13:39:36Z","updated_at":"2015-10-08T12:02:02Z","closed_at":null,"body":"I ran into an issue when importing a mapping from a single table. The database has some tables without primary keys which are not important for my import. So I use the filter parameter to get only the single table. But doctrine does a complete database check and throws a MappingException when scanning the table without the primary key.\r\n\r\n> console doctrine:mapping:import --em=customer **--filter=\"tbl_users\"** AcmeHelloBundle xml\r\n\r\n>  [Doctrine\\ORM\\Mapping\\MappingException]\r\n>  **Table tbl_abc has no primary key**. Doctrine does not support reverse engineering from tables that don't have a primary key.\r\n\r\nI think it would be better if the mapping import only does the check on the mentioned table in the filter parameter und do the import."},"comment":{"url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/comments/146517129","html_url":"https://github.com/doctrine/DoctrineBundle/issues/441#issuecomment-146517129","issue_url":"https://api.github.com/repos/doctrine/DoctrineBundle/issues/441","id":146517129,"user":{"login":"jderusse","id":578547,"avatar_url":"https://avatars.githubusercontent.com/u/578547?v=3","gravatar_id":"","url":"https://api.github.com/users/jderusse","html_url":"https://github.com/jderusse","followers_url":"https://api.github.com/users/jderusse/followers","following_url":"https://api.github.com/users/jderusse/following{/other_user}","gists_url":"https://api.github.com/users/jderusse/gists{/gist_id}","starred_url":"https://api.github.com/users/jderusse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jderusse/subscriptions","organizations_url":"https://api.github.com/users/jderusse/orgs","repos_url":"https://api.github.com/users/jderusse/repos","events_url":"https://api.github.com/users/jderusse/events{/privacy}","received_events_url":"https://api.github.com/users/jderusse/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T12:02:02Z","updated_at":"2015-10-08T12:02:02Z","body":":+1: "}}