Explorar o código

Made the exporter work with the correct entity manager.

pap-florin %!s(int64=13) %!d(string=hai) anos
pai
achega
9fac0dc663
Modificáronse 1 ficheiros con 1 adicións e 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();
     }