Ensure resource relationships