Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | protected function setMap(): void |
|
16 | { |
||
17 | 1 | $this->setSource('pedigree'); |
|
18 | 1 | $this->setTable('kw_pedigree_relate'); |
|
19 | 1 | $this->setRelation('id', 'kwpr_id'); |
|
20 | 1 | $this->setRelation('childId', 'kwp_id_child'); |
|
21 | 1 | $this->setRelation('parentId', 'kwp_id_parent'); |
|
22 | 1 | $this->addPrimaryKey('id'); |
|
23 | 1 | $this->addForeignKey('parents', PedigreeItemRecord::class, 'parentId', 'id'); |
|
24 | 1 | $this->addForeignKey('children', PedigreeItemRecord::class, 'childId', 'id'); |
|
25 | 1 | } |
|
27 |