Refactored doctrine.php config file