korma/korma.incubator — pull request #3 by harob (2012-12-19 20:12:52+00:00)
Title: Respecting manually specified foreign key for belongs-to and has-one...

...relationships accessed by with-object.

The with-object implementation for has-one and belongs-to relationships currently does not respect manually specified foreign keys; instead it always sets its `fkk` foreign key keyword to `(keyword (str (:table parent) "_id"))`.

This commit fixes brings this functionality in line with the rest of korma, using the :fk option if available.

Could you merge in this pull request, and ideally push the updated jar to clojars? (there currently is no official 0.1.1 on clojars). Let me know if you have any thoughts/questions!