The bases are actually connected, but I don't think it's a current mirror.
The whole thing is designed to act like a diode with zero forward voltage drop, to prevent backward flow of 5V power. If it is powered from the right, R2 turns on the right transistor, which connects the gate of the mosfet to its source and keeps it turned off. When it is powered from the left, the left transistor conducts and raises the base voltage of the right transistor, turning it off. R3 then pulls the gate of the mosfet to ground, turning it on.