mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-18 17:31:35 +00:00
Add readonly hint to projectBom query
This commit is contained in:
parent
fbd32a239a
commit
92507a5c6d
1 changed files with 4 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ use App\Services\ElementTypeNameGenerator;
|
||||||
use App\Services\EntityURLGenerator;
|
use App\Services\EntityURLGenerator;
|
||||||
use App\Services\Formatters\AmountFormatter;
|
use App\Services\Formatters\AmountFormatter;
|
||||||
use Doctrine\ORM\AbstractQuery;
|
use Doctrine\ORM\AbstractQuery;
|
||||||
|
use Doctrine\ORM\Query;
|
||||||
use Doctrine\ORM\QueryBuilder;
|
use Doctrine\ORM\QueryBuilder;
|
||||||
use Omines\DataTablesBundle\Adapter\Doctrine\ORM\SearchCriteriaProvider;
|
use Omines\DataTablesBundle\Adapter\Doctrine\ORM\SearchCriteriaProvider;
|
||||||
use Omines\DataTablesBundle\Column\TextColumn;
|
use Omines\DataTablesBundle\Column\TextColumn;
|
||||||
|
|
@ -287,6 +288,9 @@ class ProjectBomEntriesDataTable implements DataTableTypeInterface
|
||||||
->addGroupBy('footprint')
|
->addGroupBy('footprint')
|
||||||
->addGroupBy('manufacturer')
|
->addGroupBy('manufacturer')
|
||||||
->addGroupBy('partCustomState')
|
->addGroupBy('partCustomState')
|
||||||
|
|
||||||
|
->setHint(Query::HINT_READ_ONLY, true)
|
||||||
|
->setHint(Query::HINT_FORCE_PARTIAL_LOAD, false)
|
||||||
;
|
;
|
||||||
|
|
||||||
FieldHelper::addOrderByFieldParam($builder, 'bom_entry.id', 'ids');
|
FieldHelper::addOrderByFieldParam($builder, 'bom_entry.id', 'ids');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue