1 | <?php |
||
12 | class BelongsTo extends Relation |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $type = 'belongsTo'; |
||
19 | |||
20 | /** @noinspection PhpMissingParentCallCommonInspection |
||
21 | * @return string |
||
22 | */ |
||
23 | 1 | public function generateFK() |
|
27 | |||
28 | 2 | public function initResults() |
|
34 | |||
35 | /** |
||
36 | * @param $dictionary |
||
37 | * @param $collection |
||
38 | * @param $record |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function getResultsFromCollectionDictionary($dictionary, $collection, $record) |
||
50 | |||
51 | /** |
||
52 | * Build model dictionary keyed by the relation's foreign key. |
||
53 | * |
||
54 | * @param RecordCollection $collection |
||
55 | * @return array |
||
56 | */ |
||
57 | protected function buildDictionary(RecordCollection $collection) |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | public function populateQuerySpecific(AbstractQuery $query) |
||
74 | } |
||
75 |