@staticmethod
def _from_db_object(context, tag, db_tag):
    """Method to help with migration to objects.

        Converts a database entity to a formal object.
        """
    if db_tag is None:
        return None
    for field in tag.fields:
        tag[field] = db_tag[field]
    tag.obj_reset_changes()
    return tag
