public function getColumnType($col) { $info = $this->getTable()->info(); if (isset($info['metadata'][$col])) { $type = $this->_getTypeFromDbType($info['metadata'][$col]['DATA_TYPE']); if ($col == 'pos' && $type == self::TYPE_BOOLEAN) { throw new Kwf_Exception('Column "pos" must not be of type TINYINT in table "' . $info['name'] . '"'); } return $type; } return parent::getColumnType($col); }
public function getColumnType($col) { if ($this->getProxyModel()->hasColumn($col)) { return $this->getProxyModel()->getColumnType($col); } return parent::getColumnType($col); }