{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3178","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3178/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3178/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3178/events","html_url":"https://github.com/ember-cli/ember-cli/issues/3178","id":56240978,"number":3178,"title":"resolver inconsistent between camelCase and dasherized","user":{"login":"cah-briangantzler","id":1529286,"avatar_url":"https://avatars.githubusercontent.com/u/1529286?v=3","gravatar_id":"","url":"https://api.github.com/users/cah-briangantzler","html_url":"https://github.com/cah-briangantzler","followers_url":"https://api.github.com/users/cah-briangantzler/followers","following_url":"https://api.github.com/users/cah-briangantzler/following{/other_user}","gists_url":"https://api.github.com/users/cah-briangantzler/gists{/gist_id}","starred_url":"https://api.github.com/users/cah-briangantzler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cah-briangantzler/subscriptions","organizations_url":"https://api.github.com/users/cah-briangantzler/orgs","repos_url":"https://api.github.com/users/cah-briangantzler/repos","events_url":"https://api.github.com/users/cah-briangantzler/events{/privacy}","received_events_url":"https://api.github.com/users/cah-briangantzler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/docs","name":"docs","color":"009800"},{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/unverified","name":"unverified","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-02T14:11:13Z","updated_at":"2015-02-06T23:21:49Z","closed_at":"2015-02-06T23:21:49Z","body":"I recently converted to ember-cli from ember/grunt. All belongs to and has manys had to be converted to dasherized syntax, yet store find still works with camelCase. I had expected camelCase to work on the relationships as well. What is the desired behavior? (FYI Serializers and Adapters are also custom, but are found)\r\n\r\nI noticed that all the examples use single word models (post, articles) should make sure the examples and tests are using multi word models to test this.\r\n\r\nNow attempting to use http-mock in testing. Using store find and a camelCase model name, it fails to find the model (I dont now if it would have found the adapter as it doesnt get that far). If I use a dasherized model name it finds the model but fails to find the adapter.\r\n\r\nAfter a lot of digging it appears the resolver in test is not altered the same way as it is in non test. Specifically the following line in the build container doesnt seem to happen in test, leaving the normalizeFullName method just a return of the passed in param.\r\n\r\n      container.normalizeFullName = container.resolver.normalize;\r\n\r\nI am not quite sure where this should happen in test or I would suggest a solution. Does anyone have http-mock working with model names that are dasherized?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/73331605","html_url":"https://github.com/ember-cli/ember-cli/issues/3178#issuecomment-73331605","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3178","id":73331605,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T23:21:49Z","updated_at":"2015-02-06T23:21:49Z","body":"just reviewed the failing example, as I suggested above the bug is in ember-data. Which mistakenly normalizes to a internally camelized typeKey.\r\n\r\nThe only entity in the system that should have normalization control is the resolver, ember-data is violating this contract.\r\n\r\nPlease reopen this issue at http://github.com/emberjs/data"}}