Skip to content

Commit

Permalink
fixed PHP 5.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
petr_bilek committed Jun 1, 2017
1 parent 53dbec1 commit 4af438f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/doctrine/GridFactory.php
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 4af438f

Please sign in to comment.