Skip to content

Commit a420573

Browse files
jessevzjessevz
andauthored
Made it possible to include hashlist and hashType from taskWrapper (#1217)
Co-authored-by: jessevz <[email protected]>
1 parent 1366b80 commit a420573

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/inc/apiv2/model/taskwrappers.routes.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
use DBA\AccessGroup;
44
use DBA\Factory;
5+
use DBA\Hashlist;
6+
use DBA\HashType;
57
use DBA\JoinFilter;
68
use DBA\QueryFilter;
79

@@ -32,6 +34,27 @@ public static function getToOneRelationships(): array {
3234
'relationType' => AccessGroup::class,
3335
'relationKey' => AccessGroup::ACCESS_GROUP_ID,
3436
],
37+
'hashlist' => [
38+
'key' => TaskWrapper::HASHLIST_ID,
39+
40+
'relationType' => Hashlist::class,
41+
'relationKey' => Hashlist::HASHLIST_ID,
42+
],
43+
'hashType' => [
44+
'key' => TaskWrapper::TASK_WRAPPER_ID,
45+
'parentKey' => TaskWrapper::TASK_WRAPPER_ID,
46+
47+
'intermediateType' => Hashlist::class,
48+
'joinField' => TaskWrapper::HASHLIST_ID,
49+
'joinFieldRelation' => Hashlist::HASHLIST_ID,
50+
51+
'junctionTableType' => Hashlist::class,
52+
'junctionTableFilterField' => Hashlist::HASH_TYPE_ID,
53+
'junctionTableJoinField' => Hashlist::HASHLIST_ID,
54+
55+
'relationType' => HashType::class,
56+
'relationKey' => HashType::HASH_TYPE_ID,
57+
],
3558
];
3659
}
3760

0 commit comments

Comments
 (0)