def __init__(self, parent, attributes, table, exists=False):
        """
        :param parent: The parent model
        :type parent: Model

        :param attributes: The pivot attributes
        :type attributes: dict

        :param table: the pivot table
        :type table: str

        :param exists: Whether the pivot exists or not
        :type exists: bool
        """
        if attributes is None:
            attributes = {}

        super(Pivot, self).__init__()

        self.set_raw_attributes(attributes, True)

        self.set_table(table)

        self.set_connection(parent.get_connection_name())

        self.__parent = parent

        self.set_exists(exists)

        self.__timestamps__ = self.has_timestamps_attributes()
def __init__ ( self , parent , attributes , table , exists = False ) : if attributes is None : attributes = { } super ( Pivot , self ) . __init__ ( ) self . set_raw_attributes ( attributes , True ) self . set_table ( table ) self . set_connection ( parent . get_connection_name ( ) ) self . __parent = parent self . set_exists ( exists ) self . __timestamps__ = self . has_timestamps_attributes ( )
:param parent: The parent model
        :type parent: Model

        :param attributes: The pivot attributes
        :type attributes: dict

        :param table: the pivot table
        :type table: str

        :param exists: Whether the pivot exists or not
        :type exists: bool