private function addGeneratedEntityClassLoader($class, $path)
 {
     // Prevent class not found bug on newly generated entity class
     $classLoader = new ClassLoader();
     $classLoader->addClassMap(array($class => $path));
     $classLoader->setClassMapAuthoritative(true);
     $classLoader->register(true);
 }