New function to ease the pain of defining 'generatedBy' relationships.