maccman/spine — pull request #156 by cbenz (2011-12-09 14:21:26+00:00)
Title: "fkey" not added to model attributes with hasOne and hasMany

I noticed that "fkey" is not added to model attributes with hasOne and hasMany.

The problem is that without it, all the relation module is useless:
album.photos().all()
always returns [] (taking the example on http://spinejs.com/docs/relations)

Note that the "fkey" is added with belongsTo.

Here is my patch.