예제 #1
0
 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);
 }
예제 #2
0
 public function getColumnType($col)
 {
     if ($this->getProxyModel()->hasColumn($col)) {
         return $this->getProxyModel()->getColumnType($col);
     }
     return parent::getColumnType($col);
 }