1 | <?php |
||
27 | class Domain extends SortableAssociation |
||
28 | { |
||
29 | use SiteRules; |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | const TABLE_ALIAS = 'domains'; |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | const TARGET_ATTRIBUTE = 'domain'; |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | const SOURCE_ATTRIBUTE = 'elementId'; |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | * @return DomainsQuery |
||
49 | */ |
||
50 | public static function find() |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function associate(bool $autoReorder = true): bool |
||
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | public function dissociate(bool $autoReorder = true): bool |
||
76 | |||
77 | /** |
||
78 | * @return array |
||
79 | */ |
||
80 | public function rules(): array |
||
122 | } |
||
123 |