Setter for relations

@greut's work rebased. 

fixes #125 
@Rican7 is this not yet the case here?