{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/152","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/152/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/152/events","html_url":"https://github.com/strongloop/loopback-connector-mongodb/issues/152","id":89962868,"number":152,"title":"Cannot change collection name on the user model","user":{"login":"MrBoolean","id":345551,"avatar_url":"https://avatars.githubusercontent.com/u/345551?v=3","gravatar_id":"","url":"https://api.github.com/users/MrBoolean","html_url":"https://github.com/MrBoolean","followers_url":"https://api.github.com/users/MrBoolean/followers","following_url":"https://api.github.com/users/MrBoolean/following{/other_user}","gists_url":"https://api.github.com/users/MrBoolean/gists{/gist_id}","starred_url":"https://api.github.com/users/MrBoolean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrBoolean/subscriptions","organizations_url":"https://api.github.com/users/MrBoolean/orgs","repos_url":"https://api.github.com/users/MrBoolean/repos","events_url":"https://api.github.com/users/MrBoolean/events{/privacy}","received_events_url":"https://api.github.com/users/MrBoolean/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/labels/%23wip","name":"#wip","color":"ededed"},{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/labels/triage","name":"triage","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-21T21:22:26Z","updated_at":"2015-09-29T21:45:53Z","closed_at":"2015-09-29T21:45:53Z","body":"Hi Guys,\r\n\r\nas you can see i extend the `User` model by defining `BaseUser` as follows:\r\n\r\n```javascript\r\n{\r\n  \"name\": \"BaseUser\",\r\n  \"mongodb\": {\r\n    \"collection\": \"user\"\r\n  },\r\n  \"plural\": \"user\",\r\n  \"base\": \"User\",\r\n  \"idInjection\": true,\r\n  \"options\": {\r\n    \"validateUpsert\": true\r\n  },\r\n  \"properties\": {\r\n    \"firstname\": {\r\n      \"type\": \"string\"\r\n    },\r\n    \"lastname\": {\r\n      \"type\": \"string\"\r\n    }\r\n  },\r\n  \"validations\": [],\r\n  \"relations\": {},\r\n  \"acls\": [],\r\n  \"methods\": []\r\n}\r\n```\r\n\r\nUnfortunately, if I create a new `user` the collection is called `User` insteadof `user` (first character should be lowercased).\r\n\r\nDon't know why.\r\n\r\nGreets,\r\nMarc"}}