public function selectModelColumns(iterable $columns = null): self
    {
        if ($columns !== null) {
            $quotedColumns = [];
            foreach ($columns as $column) {
                $quotedColumns[] = $this->quoteDoubleIdentifier($this->getAlias(), $column);
            }
        } else {
            $quotedColumns = $this->getModelColumns();
        }

        $this->select($quotedColumns);

        return $this;
    }
public function selectModelColumns(iterable $columns = null): self
    {
        if ($columns !== null) {
            $quotedColumns = [];
            foreach ($columns as $column) {
                $quotedColumns[] = $this->quoteDoubleIdentifier($this->getAlias(), $column);
            }
        } else {
            $quotedColumns = $this->getModelColumns();
        }

        $this->select($quotedColumns);

        return $this;
    }
public function selectModelColumns ( iterable $ columns = null ) : self { if ( $ columns !== null ) { $ quotedColumns = [ ] ; foreach ( $ columns as $ column ) { $ quotedColumns [ ] = $ this -> quoteDoubleIdentifier ( $ this -> getAlias ( ) , $ column ) ; } } else { $ quotedColumns = $ this -> getModelColumns ( ) ; } $ this -> select ( $ quotedColumns ) ; return $ this ; }
Select all fields associated with model.

@param iterable|null $columns

@return self

@SuppressWarnings(PHPMD.ElseExpression)

@throws DBALException
Select all fields associated with model .