Skip to content

Commit

Permalink
Update AbstractDatatable.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeshehonov authored May 26, 2020
1 parent d3431ba commit b8884f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Datatable/AbstractDatatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b8884f4

Please sign in to comment.