korma/Korma — pull request #209 by ceterumnet (2014-02-17 16:49:25+00:00)
Title: Fixes bug with lazy associations and db binding

Sorry about the whitespace differences...my emacs is setup to save with cleanup of whitespace...

The issue that this fixes is when you have a lazily loaded association, the database binding is escaped. I've fixed this by associating the currently bound db to the ent. I'm not sure this is the best fix, but it was the least intrusive.