| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function updateDataFixtureHistory(array $updateFields, $where, array $parameters = []) |
||
| 35 | { |
||
| 36 | $qb = $this->_em |
||
| 37 | ->createQueryBuilder() |
||
| 38 | ->update('RdvMigrationBundle:DataFixture', 'm') |
||
| 39 | ->where($where); |
||
| 40 | |||
| 41 | foreach ($updateFields as $fieldName => $fieldValue) { |
||
| 42 | $qb->set($fieldName, $fieldValue); |
||
| 43 | } |
||
| 44 | $qb->getQuery()->execute($parameters); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |