add doctrine loading on configuration