public function addFields(array $fields)
    {
        $oldFields = $this->_queryBuilder->getFields() ? $this->_queryBuilder->getFields() : array();
        $newFields = array_merge($oldFields, $fields);
        $this->setFields($newFields);
        return $this;
    }
public function addFields(array $fields)
    {
        $oldFields = $this->_queryBuilder->getFields() ? $this->_queryBuilder->getFields() : array();
        $newFields = array_merge($oldFields, $fields);
        $this->setFields($newFields);
        return $this;
    }
public function addFields ( array $ fields ) { $ oldFields = $ this -> _queryBuilder -> getFields ( ) ? $ this -> _queryBuilder -> getFields ( ) : array ( ) ; $ newFields = array_merge ( $ oldFields , $ fields ) ; $ this -> setFields ( $ newFields ) ; return $ this ; }
Add an array of fields

@param array $fields
@return \Ali\DatatableBundle\Util\Datatable
Add an array of fields