First subQuery refactoring
include new test file
Only use subQueryAttributes if limit is set
Only use subQueryAttributes if subQuery is indicated (required + multi)
Make previous tests run atleast
dont wanna have to rewrite query generator tests
should be possible use limit and a where on a hasMany with additional includes
should be possible use limit and a where on a hasMany with a through model with additional includes
Fix existing include tests
Fix tests
Minor cleanup
Comments
Comments on comments on comments
loop should wait for companies too
Remove addAttribute, not sure why it was left in
Merge pull request #1205 from mickhansen/include-subquery-refactor

Include subquery refactor
Fix it so foreignKeys dont get overwritten on hasOne/belongsTo call targeting opposite
Merge pull request #1208 from mickhansen/fk-test

Fix it so foreignKeys dont get overwritten on hasOne/belongsTo call targ...
For the paranoidClause function, prevent that deletedAt is overwritten when the where option is an array
Remove console.log