Generate instances for relationships with collections