Explorar el Código

Merge pull request #77 from pap-florin/patch-1

Use the correct entity manager when exporting data
Thomas hace 13 años
padre
commit
4bc10e1739
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Model/ModelManager.php

+ 1 - 1
Model/ModelManager.php

@@ -362,7 +362,7 @@ class ModelManager implements ModelManagerInterface
      */
     public function getExportFields($class)
     {
-        $metadata = $this->registry->getEntityManager()->getClassMetadata($class);
+        $metadata = $this->getEntityManager($class)->getClassMetadata($class);
 
         return $metadata->getFieldNames();
     }