public function jsonDecodeAttribute($name, $assoc = true, $depth = 512)
    {
        $string = json_decode($this->owner->$name, $assoc, $depth);
        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new CException(sprintf('Failed to decode JSON attribute "%s".', $name));
        }
        return $string;
    }