protected function getColumnNames()
    {
        $names = array();
        $columns = $this->db->getSchemaManager()->listTableColumns($this->table);

        if (count($columns) == 0) {
            $schema = $this->schema ?: $this->app['db.schema'];
            $fullTable = $schema.".".$this->table;
            $columns = $this->db->getSchemaManager()->listTableColumns($fullTable);
        }

        foreach ($columns as $column) {
            $names[] = $column->getName();
        }

        return $names;
    }
protected function getColumnNames()
    {
        $names = array();
        $columns = $this->db->getSchemaManager()->listTableColumns($this->table);

        if (count($columns) == 0) {
            $schema = $this->schema ?: $this->app['db.schema'];
            $fullTable = $schema.".".$this->table;
            $columns = $this->db->getSchemaManager()->listTableColumns($fullTable);
        }

        foreach ($columns as $column) {
            $names[] = $column->getName();
        }

        return $names;
    }
protected function getColumnNames ( ) { $ names = array ( ) ; $ columns = $ this -> db -> getSchemaManager ( ) -> listTableColumns ( $ this -> table ) ; if ( count ( $ columns ) == 0 ) { $ schema = $ this -> schema ? : $ this -> app [ 'db.schema' ] ; $ fullTable = $ schema . "." . $ this -> table ; $ columns = $ this -> db -> getSchemaManager ( ) -> listTableColumns ( $ fullTable ) ; } foreach ( $ columns as $ column ) { $ names [ ] = $ column -> getName ( ) ; } return $ names ; }
Retorna os nomes das colunas da tabela.

@return array

@return array
Retorna os nomes das colunas da tabela .