Skip to content

Commit

Permalink
Merge pull request sonata-project#77 from pap-florin/patch-1
Browse files Browse the repository at this point in the history
Use the correct entity manager when exporting data
  • Loading branch information
rande committed Apr 30, 2012
2 parents 8bb63d4 + 9fac0dc commit 4bc10e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/ModelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4bc10e1

Please sign in to comment.