mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed exception on part tables.
This commit is contained in:
parent
b8f5b7628c
commit
e9a6649b5c
1 changed files with 6 additions and 6 deletions
|
@ -61,16 +61,16 @@ class PartsDataTable implements DataTableTypeInterface
|
|||
|
||||
protected function getQuery(QueryBuilder $builder)
|
||||
{
|
||||
$builder->select('p')
|
||||
$builder->select('part')
|
||||
->addSelect('category')
|
||||
->addSelect('footprint')
|
||||
->addSelect('manufacturer')
|
||||
->addSelect('partUnit')
|
||||
->from(Part::class, 'p')
|
||||
->leftJoin('p.category', 'category')
|
||||
->leftJoin('p.footprint', 'footprint')
|
||||
->leftJoin('p.manufacturer', 'manufacturer')
|
||||
->leftJoin('p.partUnit', 'partUnit');
|
||||
->from(Part::class, 'part')
|
||||
->leftJoin('part.category', 'category')
|
||||
->leftJoin('part.footprint', 'footprint')
|
||||
->leftJoin('part.manufacturer', 'manufacturer')
|
||||
->leftJoin('part.partUnit', 'partUnit');
|
||||
}
|
||||
|
||||
protected function buildCriteria(QueryBuilder $builder, array $options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue