Changed the way the writer retrieves relations, allowing to target link table columns with with-conditions or with-based-orderings.