1602/jugglingdb — pull request #221 by code-vicar (2013-03-08 00:05:30+00:00)
Title: allow specifying localKey in hasMany and belongsTo relationships

There was already the ability to specify the "foreignKey" in a relationship. However, there was no way to specify the "localKey" in a situation where the key on the other side of the relationship is not the standard "id" field. This change simply looks in the params object for a "localKey" string which it then uses in place of the "id" field. If no localKey is specifed "id" is used.