tgriesser/bookshelf — pull request #489 by alliejanoch (2014-09-18 22:24:31+00:00)
Title: Add a withRelatedColumns option for fetch

I wanted to be able to specify which columns would be fetched when I use the withRelated option of fetch. This can now be done using the withRelatedColumns option. For example

```
new Book({'ISBN-13': '9780440180296'}).fetch({
withRelated: ['genre', 'editions'],
withRelatedColumns: {genre: ['id']}
});
```
will fetch all columns for `editions`, but only the `id` for the `genre` table.