maccman/spine — Issue #129: spine relation not working with random name and without foreign key specified
Author: TomWolk
Created: 2011-10-31 06:05:52+00:00
State: open

In my project the following code does not work because spine does something wrong with the foreign key:

SubTopic.belongsTo('parent', 'Topic');
Topic.hasMany('subTopics', 'SubTopic');

When I replace the name 'parent' with the name 'topic' it works just fine. But I lost some hours to figure that out.