Fix doctrine problems with basic profile

Fixed doctrine problems when basic profile is not configured.