Skip to content

Commit

Permalink
add itemtype_item_revert
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh authored and trasher committed Oct 27, 2017
1 parent 464bad5 commit 16eaef3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/devapi/search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,15 @@ To define join parameters, you can use one or more of the following:

REFTABLE.`id` = NEWTABLE.`#linkfield#`

* ``itemtype_item`` for links using ``itemtype`` and ``items_id`` fields:::
* ``itemtype_item`` for links using ``itemtype`` and ``items_id`` fields in new table:::

REFTABLE.`id` = NEWTABLE.`items_id`
AND NEWTABLE.`itemtype` = '#new_table_itemtype#'
AND NEWTABLE.`itemtype` = '#ref_table_itemtype#'

* ``itemtype_item_revert`` (since 9.2.1) for links using ``itemtype`` and ``items_id`` fields in ref table:::

NEWTABLE.`id` = REFTABLE.`items_id`
AND REFTABLE.`itemtype` = '#new_table_itemtype#'

* ``mainitemtype_mainitem`` same as ``itemtype_item`` but using mainitemtype and mainitems_id fields:::

Expand Down

0 comments on commit 16eaef3

Please sign in to comment.