src/Entity/Repository/DataFixtureRepository.php
public function updateDataFixutreHistory(array $updateFields, $where, array $parameters = [])
    {
        $qb = $this->_em
            ->createQueryBuilder()
            ->update('OkvpnFixtureBundle:DataFixture', 'm')
            ->where($where);

        foreach ($updateFields as $fieldName => $fieldValue) {
            $qb->set($fieldName, $fieldValue);
        }
        $qb->getQuery()->execute($parameters);
    }
public function updateDataFixutreHistory(array $updateFields, $where, array $parameters = [])
    {
        $qb = $this->_em
            ->createQueryBuilder()
            ->update('OkvpnFixtureBundle:DataFixture', 'm')
            ->where($where);

        foreach ($updateFields as $fieldName => $fieldValue) {
            $qb->set($fieldName, $fieldValue);
        }
        $qb->getQuery()->execute($parameters);
    }
public function updateDataFixutreHistory ( array $ updateFields , $ where , array $ parameters = [ ] ) { $ qb = $ this -> _em -> createQueryBuilder ( ) -> update ( 'OkvpnFixtureBundle:DataFixture' , 'm' ) -> where ( $ where ) ; foreach ( $ updateFields as $ fieldName => $ fieldValue ) { $ qb -> set ( $ fieldName , $ fieldValue ) ; } $ qb -> getQuery ( ) -> execute ( $ parameters ) ; }
Update data fixture history

@param array  $updateFields assoc array with field names and values that should be updated
@param string $where        condition
@param array  $parameters   optional parameters for where condition
Update data fixture history