@staticmethod
def _from_db_object(obj, db_obj):
    """Converts a database entity to a formal object.

        :param obj: An object of the class.
        :param db_obj: A DB model of the object
        :return: The object of the class with the database entity added
        """
    for field in obj.fields:
        obj[field] = db_obj[field]
    obj.obj_reset_changes()
    return obj
