Fostering good relationships with teachers in the early grades may have long-lasting benefits, new research suggests.