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