Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeshehonov authored May 26, 2020
1 parent b8884f4 commit d458f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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->getDoctrine()->getManager();
$this->em = $em = $this->getEntityManager();
$metadata = $em->getClassMetadata($this->getEntity());
$this->columnBuilder = new ColumnBuilder($metadata, $twig, $router, $this->getName(), $em);

Expand Down Expand Up @@ -288,7 +288,7 @@ public function getDoctrine()
*/
public function getEntityManager()
{
return $this->em;
return $this->getDoctrine()->getManager();
}

/**
Expand Down

0 comments on commit d458f00

Please sign in to comment.