Add relations between entities.