CleverStack/clever-orm — pull request #2 by oitozero (2014-04-10 12:59:38+00:00)
Title: Strip "Model" from setter funcName

When using model associations in seedData.json files, grunt db:seed fails:
**TypeError: Property 'set[model name]Model' of object [object Object] is not a function**

Here is a sample of the issue:

./modules/clever-orm/config/default.json
```
"modelAssociations": {
"SubscriptionModel": {
"hasMany": ["AccountModel"]
},
"AccountModel": {
"belongsTo": ["SubscriptionModel"]
}
}
```

./modules/.../seedData.json
```
{
"SubscriptionModel": [
{
"name": "Trial",
"description": "30 days trial subscription"
},
{
"name": "Annual Subscription",
"description": "Annual Subscription"
}
],

"AccountModel": [
{
"name": "Default Account",
"associations": {
"SubscriptionModel": {"name": "Annual Subscription"}
}
}
],
}
```

```
$grunt db:seed
...
TypeError: Property 'setSubscriptionModel' of object [object Object] is not a function
```

This PR is just a quick fix, while a permanent fix is in place.