diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 39e1db5d..8fdc3435 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -1361,6 +1361,14 @@ protected function _get($fieldName, $load = true) } else { $value = $this->_data[$fieldName]; } + + // Here we support typecasting, so we always return data in the format of the column + $type = $this->_table->getTypeOf($fieldName); + switch($type) { + case 'json': + $value = json_decode($value); + break; + } return $value; }