NotORM Panel for Nette framework
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
NotORMPanel.php
README.md
composer.json
panel.latte

README.md

notorm-nette-panel

NotORM Panel for Nette framework for debugging

Instalation

Into app/bootstrap.php after

$container = $configurator->createContainer();

add this lines

# connect NotORM panel

$panel = NotORMPanel::getInstance();
$panel->setPlatform($container->pdo->getAttribute(PDO::ATTR_DRIVER_NAME));
\Nette\Diagnostics\Debugger::addPanel($panel);

$container->notorm->debug = function($query, $parameters) {
	NotORMPanel::getInstance()->logQuery($query, $parameters);
};

It is not nice but work ok ;-)