Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | protected function targetTable(SchemaBuilder $builder): AbstractTable |
||
42 | { |
||
43 | $target = $this->getDefinition()->targetContext(); |
||
44 | if (empty($target)) { |
||
45 | throw new RelationSchemaException("Unable to get target context in " . get_class($this)); |
||
46 | } |
||
47 | |||
48 | return $builder->requestTable($target->getTable(), $target->getDatabase()); |
||
49 | } |
||
50 | |||
55 | } |