| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function getSupplierForReassign($supplier) |
||
| 36 | { |
||
| 37 | $query = $this->createQueryBuilder('s'); |
||
| 38 | $query |
||
| 39 | ->select('s') |
||
| 40 | ->where($query->expr()->neq('s.name', ':idname')) |
||
| 41 | ->andWhere('s.familyLog = :flname') |
||
| 42 | ->andWhere('s.active = true') |
||
| 43 | ->setParameters(['idname' => $supplier->getName(), 'flname' => $supplier->getFamilyLog(),]) |
||
| 44 | ->orderBy('s.name', 'ASC'); |
||
| 45 | |||
| 46 | return $query; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |