Add doctrine extension