mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 15:05:58 +01:00
Improved usability of part select element
This commit is contained in:
@@ -72,11 +72,12 @@ class PartRepository extends NamedDBElementRepository
|
||||
$qb = $this->createQueryBuilder('part');
|
||||
$qb->select('part')
|
||||
->leftJoin('part.category', 'category')
|
||||
->leftJoin('part.footprint', 'footprint')
|
||||
|
||||
->where('part.name LIKE :query')
|
||||
->orWhere('part.description LIKE :query')
|
||||
->orWhere('category.name LIKE :query')
|
||||
|
||||
->orWhere('footprint.name LIKE :query')
|
||||
;
|
||||
|
||||
$qb->setParameter('query', '%'.$query.'%');
|
||||
|
||||
Reference in New Issue
Block a user