diff --git a/Datatable/AbstractDatatable.php b/Datatable/AbstractDatatable.php index 03b5bf28..3778c8c1 100755 --- a/Datatable/AbstractDatatable.php +++ b/Datatable/AbstractDatatable.php @@ -184,7 +184,7 @@ public function __construct( $this->doctrine = $doctrine; $this->twig = $twig; - $this->em = $em = $this->getEntityManager(); + $this->em = $em = $this->getDoctrine()->getManager(); $metadata = $em->getClassMetadata($this->getEntity()); $this->columnBuilder = new ColumnBuilder($metadata, $twig, $router, $this->getName(), $em);