The child learns to comfort himself through masturbation, so such a dream shows a need for comfort. .