public function setBlockColumns($columnList, $clear = false)
    {
        // reset it requested
        if ($clear) {
            $this->blockColumns = [];
        }

        foreach ($columnList as $column) {
            $this->blockColumns[] = $column;
        }
    }
public function setBlockColumns($columnList, $clear = false)
    {
        // reset it requested
        if ($clear) {
            $this->blockColumns = [];
        }

        foreach ($columnList as $column) {
            $this->blockColumns[] = $column;
        }
    }
public function setBlockColumns ( $ columnList , $ clear = false ) { // reset it requested if ( $ clear ) { $ this -> blockColumns = [ ] ; } foreach ( $ columnList as $ column ) { $ this -> blockColumns [ ] = $ column ; } }
for a given array of column names, add them to the block list

@param array $columnList a list of columns to block for this model
@param boolean $clear should the existing list of blockColumns be cleared to an array
this has the affect of initializing the list
for a given array of column names add them to the block list