Improved usability of part select element

This commit is contained in:
Jan Böhmer 2022-12-24 16:25:29 +01:00
parent 7558d57545
commit 64e7ce4ad6
3 changed files with 8 additions and 6 deletions

View file

@ -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.'%');