protected function _fetchColumns()
    {
        $columns = $this->_database->query(
            'SELECT ' .
            implode(',', $this->_informationSchemaColumns) .
            ' FROM information_schema.columns WHERE table_schema=? AND LOWER(table_name)=? ORDER BY ordinal_position',
            array(
                $this->_database->getTableSchema(),
                $this->_name,
            )
        );
        foreach ($columns as $column) {
            $column['column_name'] = strtolower($column['column_name']);
            $object = $this->_database->createColumnObject();
            $object->constructFromTable($this, $column);
            $this->_columns[$column['column_name']] = $object;
        }
    }
protected function _fetchColumns()
    {
        $columns = $this->_database->query(
            'SELECT ' .
            implode(',', $this->_informationSchemaColumns) .
            ' FROM information_schema.columns WHERE table_schema=? AND LOWER(table_name)=? ORDER BY ordinal_position',
            array(
                $this->_database->getTableSchema(),
                $this->_name,
            )
        );
        foreach ($columns as $column) {
            $column['column_name'] = strtolower($column['column_name']);
            $object = $this->_database->createColumnObject();
            $object->constructFromTable($this, $column);
            $this->_columns[$column['column_name']] = $object;
        }
    }
protected function _fetchColumns ( ) { $ columns = $ this -> _database -> query ( 'SELECT ' . implode ( ',' , $ this -> _informationSchemaColumns ) . ' FROM information_schema.columns WHERE table_schema=? AND LOWER(table_name)=? ORDER BY ordinal_position' , array ( $ this -> _database -> getTableSchema ( ) , $ this -> _name , ) ) ; foreach ( $ columns as $ column ) { $ column [ 'column_name' ] = strtolower ( $ column [ 'column_name' ] ) ; $ object = $ this -> _database -> createColumnObject ( ) ; $ object -> constructFromTable ( $ this , $ column ) ; $ this -> _columns [ $ column [ 'column_name' ] ] = $ object ; } }
Fetch column information from the database

Invoked by the constructor, the default implementation queries
information_schema.columns for all columns belonging to this table. To
make this functional, subclasses must set
\Nada\Database\AbstractDatabase::$_tableSchema and, if necessary, extend
$_informationSchemaColumns with DBMS-specific columns.
Fetch column information from the database