#396 Fixed getting connection
#396 Added doctrine proxy files to git ignore