示例#1
0
 public function __construct()
 {
     parent::__construct();
     $types = array('string', 'array', 'object', 'blob', 'clob', 'gzip', 'char', 'varchar');
     foreach ($types as $type) {
         $this->hasColumn('column_' . $type, $type);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $types = array('string', 'array', 'object', 'blob', 'clob', 'char', 'varchar');
     global $zlibEnabled;
     if ($zlibEnabled) {
         $types[] = 'gzip';
     }
     foreach ($types as $type) {
         $this->hasColumn('column_' . $type, $type);
     }
 }