protected function prepareObjectForClient($object) { $result = array(); foreach ($object as $key => $value) { /** * @var $col SQLColumn */ $col = $this->columns[$key]; $result[$key] = $col->prepareForClient($value); } return $result; }