public function _serializeLoadField(Field $f, $value)
    {
        switch ($f->serialize === true ? 'serialize' : $f->serialize) {
        case 'serialize':
            return unserialize($value);
        case 'json':
            return $this->jsonDecode($f, $value, $f->type == 'array');
        case 'base64':
            return base64_decode($value);
        }
    }
public function _serializeLoadField(Field $f, $value)
    {
        switch ($f->serialize === true ? 'serialize' : $f->serialize) {
        case 'serialize':
            return unserialize($value);
        case 'json':
            return $this->jsonDecode($f, $value, $f->type == 'array');
        case 'base64':
            return base64_decode($value);
        }
    }
public function _serializeLoadField ( Field $ f , $ value ) { switch ( $ f -> serialize === true ? 'serialize' : $ f -> serialize ) { case 'serialize' : return unserialize ( $ value ) ; case 'json' : return $ this -> jsonDecode ( $ f , $ value , $ f -> type == 'array' ) ; case 'base64' : return base64_decode ( $ value ) ; } }
Override this to fine-tune un-serialization for your persistence.

@param Field $f
@param mixed $value

@return mixed
Override this to fine - tune un - serialization for your persistence .