Add doctrine tools trait