geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

Relationship Keys Vary by System #195

Closed danfinlay closed 10 years ago

danfinlay commented 10 years ago

In a RHEL environment, a relationship defined like NewsStories: hasMany('Post') will become user.news_stories, but on my mac, that same relationship will become user.newsStories.

mde commented 10 years ago

This is something happening in JavaScript-land? There was a bug recently that fixed some of the inflections -- are you sure you have the same version of Geddy in both places?

danfinlay commented 10 years ago

Is the new inflection the camelCase one? If so, I may have fixed this by updating like you said, and you may close this issue.

mde commented 10 years ago

Yes, all variable in JS should be camelCase. This is what got fixed. I'll go ahead and close this.