Interaction between the magnetic moments of the 3d and the 4f electrons in manganite, probed by Ga substitution