Add method on repository to create relationships.