Add doctrine support

Auto resolve doctrine entity