@staticmethod
def _from_db_object(provider, db_provider):
    """Converts a database entity to a formal object."""
    for field in provider.fields:
        setattr(provider, field, db_provider[field])
    provider.obj_reset_changes()
    return provider
