1 | <?php |
||
22 | class Associations extends SortableAssociations |
||
23 | { |
||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | const SOURCE_ATTRIBUTE = Domain::SOURCE_ATTRIBUTE; |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | const TARGET_ATTRIBUTE = Domain::TARGET_ATTRIBUTE; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | protected static function tableAlias(): string |
||
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | * @return DomainsQuery |
||
45 | */ |
||
46 | public function getQuery($config = []): SortableAssociationQueryInterface |
||
50 | |||
51 | /** |
||
52 | * @param SortableAssociationInterface|Domain $record |
||
53 | * @return SortableAssociationQueryInterface|DomainsQuery |
||
54 | */ |
||
55 | protected function associationQuery( |
||
64 | |||
65 | /** |
||
66 | * @param SortableAssociationQueryInterface|DomainsQuery $query |
||
67 | * @return array |
||
68 | */ |
||
69 | protected function existingAssociations( |
||
82 | |||
83 | /** |
||
84 | * @param $source |
||
85 | * @param int $fieldId |
||
86 | * @param int $siteId |
||
87 | * @return SortableAssociationQueryInterface|ActiveQuery |
||
88 | */ |
||
89 | private function query( |
||
102 | |||
103 | /** |
||
104 | * @param $source |
||
105 | * @param int $fieldId |
||
106 | * @param int $siteId |
||
107 | * @return array |
||
108 | */ |
||
109 | private function associations( |
||
118 | } |
||
119 |