Add check on the relationship side when assigning aliases.