#386 Fixed passing memcache instance to doctrine