Skip to content

Commit 3df5bc4

Browse files
committed
add comments
1 parent c1ce2ad commit 3df5bc4

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
@@ -298,8 +298,9 @@ function plugin_tag_redefine_api_schemas(array $data): array {
298298
'ref_join' => [
299299
// This is the linking join between the main item and the data needed
300300
'table' => PluginTagTagItem::getTable(),
301-
'fkey' => 'id',
302-
'field' => 'items_id',
301+
'fkey' => 'id', // ID field on the main join table
302+
'field' => 'items_id', // items_id field on the linking join table
303+
// Join params becomes tags_ref.items_id=_.id
303304
'condition' => [
304305
'itemtype' => $schema['x-itemtype']
305306
],

0 commit comments

Comments
 (0)