Transference [wikipedia] is considered one of the most important and interesting events in psychology.

Sometimes it is defined very narrowly to refer to something that occurs between a "patient" and a "doctor". Specifically, the substitution of the analyst for a parent of the "patient". A patient sees their parent in the doctor. But it can be used in a broad sense to understand many things.

One (online) definition of the transference is "In psychoanalysis, the process by which emotions associated with one person, such as a parent, unconsciously shift to another, especially to the analyst" or "the redirection of attitudes and emotions towards a substitute, such as towards the analyst during therapy".

Carl Jung's The Psychology of the Transference is a detailed look at some alchemical texts from centuries ago, with an eye to observing steps that the human mind tries to follow by whatever means, including through Transference.