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