Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | trait ForeignKeyTrait |
||
18 | { |
||
19 | /** |
||
20 | * Create foreign key between two entities. Only when both entities are located |
||
21 | * in a same database. |
||
22 | * |
||
23 | * @param Registry $registry |
||
24 | * @param Entity $source |
||
25 | * @param Entity $target |
||
26 | * @param Field $innerField |
||
27 | * @param Field $outerField |
||
28 | */ |
||
29 | protected function createForeignKey( |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return OptionSchema |
||
49 | */ |
||
50 | abstract protected function getOptions(): OptionSchema; |
||
51 | } |