Example #1
0
 /**
  * @return array
  */
 public function listColums()
 {
     if (!is_array($this->tableColumns)) {
         $this->tableColumns = array();
         try {
             $columns = $this->model->showColums($this->table);
         } catch (\Exception $e) {
             throw new DbalException('Unable to list table columns.');
         }
         foreach ($columns as $column) {
             $this->tableColumns[$column['Field']] = $column;
         }
     }
     return $this->tableColumns;
 }