| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | public function getSupplierForReassign($article) |
||
| 50 | { |
||
| 51 | $query = $this->createQueryBuilder('s') |
||
| 52 | ->where('s.name != :idname') |
||
| 53 | ->andWhere('s.family_log = :flname') |
||
| 54 | ->andWhere('s.active = 1') |
||
| 55 | ->setParameters( |
||
| 56 | array( |
||
| 57 | 'idname' => $article->getSupplier()->getName(), |
||
| 58 | 'flname' => $article->getFamilyLog(), |
||
| 59 | ) |
||
| 60 | ) |
||
| 61 | ->orderBy('s.name', 'ASC'); |
||
| 62 | |||
| 63 | return $query; |
||
| 64 | } |
||
| 65 | } |
||
| 66 |