This only applies to PNP / NPN Bipolar transistors. (3906 & 3904 examples)
A handy way to remember how they work is to remember what they look like inside.
a PNP is made of 3 regions, Positive, Negative and Positive again. NPN is the same but reversed.
In a diode there are only 2 regions...