entity manager for grido/grid
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
JO/Nette/Doctrine
README.md
composer.json

README.md

Example

grid builder class

class GridBuilder  extends \JO\Nette\Doctrine\EntityGridoManager
{
/**
 *
 * @return Grid
 */
public function registerColumns()
{
    $this->dg->model = $this->em->getRepository($this->entity)->getGridDataSource();

    $this->addCols(['name','slug','description'],true,true);

    $this->dg->setFilterRenderType(Filter::RENDER_INNER);


    return $this->dg;
}
}

presenter

protected function createComponentProductGroupGrid($name)
{
    $this->gridBuilder = new GridBuilder('entityClassName', $entityManager, new \Grido\Grid($this, $name)$this->translator);
    return $this->gridBuilder->registerColumns();
}