Skip to content

Commit 7e92900

Browse files
committed
add comments
1 parent d1ebaa3 commit 7e92900

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hook.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ function plugin_tag_redefine_api_schemas(array $data): array {
280280
'ref_join' => [
281281
// This is the linking join between the main item and the data needed
282282
'table' => PluginTagTagItem::getTable(),
283-
'fkey' => 'id',
284-
'field' => 'items_id',
283+
'fkey' => 'id', // ID field on the main join table
284+
'field' => 'items_id', // items_id field on the linking join table
285+
// Join params becomes tags_ref.items_id=_.id
285286
'condition' => [
286287
'itemtype' => $schema['x-itemtype']
287288
],

0 commit comments

Comments
 (0)