From 9fac0dc6634287117b516f1562458e5a5e8b10b0 Mon Sep 17 00:00:00 2001 From: pap-florin Date: Fri, 27 Apr 2012 16:06:13 +0300 Subject: [PATCH] Made the exporter work with the correct entity manager. --- Model/ModelManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/ModelManager.php b/Model/ModelManager.php index 0d213a6c7..82852ce16 100644 --- a/Model/ModelManager.php +++ b/Model/ModelManager.php @@ -362,7 +362,7 @@ public function getDataSourceIterator(DatagridInterface $datagrid, array $fields */ public function getExportFields($class) { - $metadata = $this->registry->getEntityManager()->getClassMetadata($class); + $metadata = $this->getEntityManager($class)->getClassMetadata($class); return $metadata->getFieldNames(); }