diff --git a/src/controls/doctrine/GridFactory.php b/src/controls/doctrine/GridFactory.php index 1c8c6f4..a5df60d 100644 --- a/src/controls/doctrine/GridFactory.php +++ b/src/controls/doctrine/GridFactory.php @@ -37,7 +37,7 @@ public function __construct(EntityManager $em, array $exConfig) { public function create() { $ds = $this->em->createQueryBuilder() ->select('message') - ->from(NetteExceptionsLog::class, 'message'); + ->from('Sallyx\RabbitMqLogger\Model\Doctrine\Entity\NetteExceptionsLog', 'message'); $grid = new DataGrid(NULL, 'rabbit-mq-logger-grid'); $grid->setDataSource($ds); @@ -91,7 +91,7 @@ public function create() { } public function handleDelete($id) { - $message = $this->em->find(NetteExceptionsLog::class, $id); + $message = $this->em->find('Sallyx\RabbitMqLogger\Model\Doctrine\Entity\NetteExceptionsLog', $id); $this->em->remove($message); $this->em->flush(); }