diff --git a/Datatable/AbstractDatatable.php b/Datatable/AbstractDatatable.php index e6c59936..0a7441ca 100755 --- a/Datatable/AbstractDatatable.php +++ b/Datatable/AbstractDatatable.php @@ -183,8 +183,8 @@ public function __construct( $this->router = $router; $this->doctrine = $doctrine; $this->twig = $twig; - - $em = $this->getEntityManager(); + + $this-em = $em = $this->getEntityManager(); $metadata = $em->getClassMetadata($this->getEntity()); $this->columnBuilder = new ColumnBuilder($metadata, $twig, $router, $this->getName(), $em);