public function _beforeDelete(AbstractModel $object)
    {
        $condition = ['stockist_id = ?' => (int)$object->getId()];
        $this->getConnection()->delete($this->getTable('limesharp_stockists_stores'), $condition);
        return parent::_beforeDelete($object);
    }
public function _beforeDelete(AbstractModel $object)
    {
        $condition = ['stockist_id = ?' => (int)$object->getId()];
        $this->getConnection()->delete($this->getTable('limesharp_stockists_stores'), $condition);
        return parent::_beforeDelete($object);
    }
public function _beforeDelete ( AbstractModel $ object ) { $ condition = [ 'stockist_id = ?' => ( int ) $ object -> getId ( ) ] ; $ this -> getConnection ( ) -> delete ( $ this -> getTable ( 'limesharp_stockists_stores' ) , $ condition ) ; return parent :: _beforeDelete ( $ object ) ; }
Process stockist data before deleting

@param \Magento\Framework\Model\AbstractModel $object
@return $this
Process stockist data before deleting