ibdknox/Korma — pull request #76 by janherich (2012-07-25 08:45:12+00:00)
Title: New macros for many-to-many relationships

Hello Chris, i enjoyed using your great korma library but i missed the many-to-many relations feature so i implemented 2 new macros. Maybe their naming is little bit crude but i didn't want it to be confusing with existing 'has-many' and 'belongs-to' macros creating many-to-one and one-to-many relations. When 'with' macro is used, it works the same way as with 'has-many' relation, so referenced sub-entity is lazily fetched with post select for each main record from result-set.