Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Jun 28, 2023
1 parent c1ce2ad commit 3df5bc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ function plugin_tag_redefine_api_schemas(array $data): array {
'ref_join' => [
// This is the linking join between the main item and the data needed
'table' => PluginTagTagItem::getTable(),
'fkey' => 'id',
'field' => 'items_id',
'fkey' => 'id', // ID field on the main join table
'field' => 'items_id', // items_id field on the linking join table
// Join params becomes tags_ref.items_id=_.id
'condition' => [
'itemtype' => $schema['x-itemtype']
],
Expand Down

0 comments on commit 3df5bc4

Please sign in to comment.