mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed phpstan issues
This commit is contained in:
parent
f1af19a52a
commit
be2ed52d93
1 changed files with 10 additions and 1 deletions
|
@ -30,6 +30,7 @@ use Doctrine\ORM\Query\ResultSetMapping;
|
|||
use Doctrine\ORM\QueryBuilder;
|
||||
use Doctrine\ORM\Tools\Pagination\CountOutputWalker;
|
||||
use Doctrine\ORM\Tools\Pagination\Paginator;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Omines\DataTablesBundle\Adapter\AdapterQuery;
|
||||
use Omines\DataTablesBundle\Adapter\Doctrine\Event\ORMAdapterQueryEvent;
|
||||
use Omines\DataTablesBundle\Adapter\Doctrine\ORMAdapter;
|
||||
|
@ -52,7 +53,15 @@ class TwoStepORMAdapater extends ORMAdapter
|
|||
{
|
||||
private \Closure $detailQueryCallable;
|
||||
|
||||
private bool $use_simple_total;
|
||||
private bool $use_simple_total = false;
|
||||
|
||||
public function __construct(ManagerRegistry $registry = null)
|
||||
{
|
||||
parent::__construct($registry);
|
||||
$this->detailQueryCallable = static function (QueryBuilder $qb, array $ids) {
|
||||
throw new \RuntimeException('You need to set the detail_query option to use the TwoStepORMAdapter');
|
||||
};
|
||||
}
|
||||
|
||||
protected function configureOptions(OptionsResolver $resolver): void
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue