protected function setCustomFields($base, $data, array $model_registry = array())
    {
        if (count($this->customfieldgroups) > 0) {
        } else {
            return $base;
        }

        foreach ($this->customfieldgroups as $group) {
            $group_data   = $this->processQueryFields(json_decode($data->$group), $model_registry [$group]);
            $base->$group = $this->sortObject($group_data);
        }

        return $base;
    }
protected function setCustomFields($base, $data, array $model_registry = array())
    {
        if (count($this->customfieldgroups) > 0) {
        } else {
            return $base;
        }

        foreach ($this->customfieldgroups as $group) {
            $group_data   = $this->processQueryFields(json_decode($data->$group), $model_registry [$group]);
            $base->$group = $this->sortObject($group_data);
        }

        return $base;
    }
protected function setCustomFields ( $ base , $ data , array $ model_registry = array ( ) ) { if ( count ( $ this -> customfieldgroups ) > 0 ) { } else { return $ base ; } foreach ( $ this -> customfieldgroups as $ group ) { $ group_data = $ this -> processQueryFields ( json_decode ( $ data -> $ group ) , $ model_registry [ $ group ] ) ; $ base -> $ group = $ this -> sortObject ( $ group_data ) ; } return $ base ; }
Set Custom Fields

@param   object $base
@param   object $data
@param   array  $model_registry

@return  object
@since   1.0.0
Set Custom Fields