Changed deprecated Doctrine manager call
Added use statements for missing classes