1 | <?php |
||
25 | class Associations extends SortableAssociations |
||
26 | { |
||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | const SOURCE_ATTRIBUTE = Domain::SOURCE_ATTRIBUTE; |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | const TARGET_ATTRIBUTE = Domain::TARGET_ATTRIBUTE; |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | protected static function tableAlias(): string |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | * @return DomainsQuery |
||
48 | */ |
||
49 | public function getQuery($config = []): SortableAssociationQueryInterface |
||
53 | |||
54 | /** |
||
55 | * @param SortableAssociationInterface|Domain $record |
||
56 | * @return SortableAssociationQueryInterface|DomainsQuery |
||
57 | */ |
||
58 | protected function associationQuery( |
||
67 | |||
68 | /** |
||
69 | * @param SortableAssociationQueryInterface|DomainsQuery $query |
||
70 | * @return array |
||
71 | */ |
||
72 | protected function existingAssociations( |
||
85 | |||
86 | /** |
||
87 | * @param $source |
||
88 | * @param int $fieldId |
||
89 | * @param int $siteId |
||
90 | * @return SortableAssociationQueryInterface|ActiveQuery |
||
91 | */ |
||
92 | private function query( |
||
105 | |||
106 | /** |
||
107 | * @param $source |
||
108 | * @param int $fieldId |
||
109 | * @param int $siteId |
||
110 | * @return array |
||
111 | */ |
||
112 | private function associations( |
||
121 | |||
122 | /** |
||
123 | * @param SortableAssociationQueryInterface $query |
||
124 | * @return \flipbox\domains\fields\Domains|null |
||
125 | */ |
||
126 | protected function resolveFieldFromQuery( |
||
135 | |||
136 | /** |
||
137 | * @inheritdoc |
||
138 | * @param bool $validate |
||
139 | * @throws \Exception |
||
140 | */ |
||
141 | public function save( |
||
164 | } |
||
165 |