Fixed relationship belongsTo and hasMany generation, added semicolon to relationship template string.