final public function removeFromJunction($table, $masterValue, $masterColumn = self::PARAM_JUNCTION_MASTER_COLUMN)
    {
        // Support for multiple removal
        if (!is_array($masterValue)) {
            $masterValue = array($masterValue);
        }

        return $this->db->delete()
                        ->from($table)
                        ->whereIn($masterColumn, $masterValue)
                        ->execute();
    }
final public function removeFromJunction($table, $masterValue, $masterColumn = self::PARAM_JUNCTION_MASTER_COLUMN)
    {
        // Support for multiple removal
        if (!is_array($masterValue)) {
            $masterValue = array($masterValue);
        }

        return $this->db->delete()
                        ->from($table)
                        ->whereIn($masterColumn, $masterValue)
                        ->execute();
    }
final public function removeFromJunction ( $ table , $ masterValue , $ masterColumn = self :: PARAM_JUNCTION_MASTER_COLUMN ) { // Support for multiple removal if ( ! is_array ( $ masterValue ) ) { $ masterValue = array ( $ masterValue ) ; } return $ this -> db -> delete ( ) -> from ( $ table ) -> whereIn ( $ masterColumn , $ masterValue ) -> execute ( ) ; }
Removes all records from junction table associated with master's key

@param string $table Junction table name
@param string|array $masterValue Master value (shared for slaves)
@param string $masterColumn Master column name
@return boolean
Removes all records from junction table associated with master s key