protected function _columnMap()
{
if ($this->_query && ($map = $this->_query->map())) {
return $map;
}
if (!($model = $this->_model)) {
return array();
}
if (!is_object($this->_query) || !$this->_query->join()) {
return $model::connection()->schema($this->_query);
}
$model = $this->_model;
return $model::connection()->schema($this->_query);
}