Add doctrine