balderdashy/waterline-schema — pull request #14 by clarkorz (2014-07-28 09:11:04+00:00)
Title: Throw and show error on console when `via` attribute doesn't exist in th...

Throw and show error on console when `via` attribute doesn't exist in the associated collection. E.g.:

// User.js
pets: { collection: 'Pet', via: 'user' } //----> should be via `owner` not `user`

// Pet.js
owner: { model: 'User' }