public function addField($field, $alias = null)
    {
        if (isset($this->addFieldStrategies[$field])) {
            $this->addFieldStrategies[$field]->addField($this->getCollection(), $field, $alias);

            return ;
        }
        parent::addField($field, $alias);
    }
public function addField($field, $alias = null)
    {
        if (isset($this->addFieldStrategies[$field])) {
            $this->addFieldStrategies[$field]->addField($this->getCollection(), $field, $alias);

            return ;
        }
        parent::addField($field, $alias);
    }
public function addField ( $ field , $ alias = null ) { if ( isset ( $ this -> addFieldStrategies [ $ field ] ) ) { $ this -> addFieldStrategies [ $ field ] -> addField ( $ this -> getCollection ( ) , $ field , $ alias ) ; return ; } parent :: addField ( $ field , $ alias ) ; }
Add field to select

@param string|array $field The field
@param string|null  $alias Alias for the field

@return void
Add field to select