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