public function hasColumn($col, $caseInsensitive = false)
    {
        if ($col instanceof Column) {
            $col = $col->getName();
        }
        if ($caseInsensitive) {
            return array_key_exists(strtolower($col), $this->columnsByLowercaseName);
        } else {
            return array_key_exists($col, $this->columnsByName);
        }
    }
public function hasColumn($col, $caseInsensitive = false)
    {
        if ($col instanceof Column) {
            $col = $col->getName();
        }
        if ($caseInsensitive) {
            return array_key_exists(strtolower($col), $this->columnsByLowercaseName);
        } else {
            return array_key_exists($col, $this->columnsByName);
        }
    }
public function hasColumn ( $ col , $ caseInsensitive = false ) { if ( $ col instanceof Column ) { $ col = $ col -> getName ( ) ; } if ( $ caseInsensitive ) { return array_key_exists ( strtolower ( $ col ) , $ this -> columnsByLowercaseName ) ; } else { return array_key_exists ( $ col , $ this -> columnsByName ) ; } }
Check whether the table has a column.

@param Column|string $col             the column object or name (e.g. 'my_column')
@param boolean       $caseInsensitive Whether the check is case insensitive. False by default.

@return boolean
Check whether the table has a column .