1 | <?php |
||
21 | trait FieldAttribute |
||
22 | { |
||
23 | use ActiveRecord, |
||
24 | FieldRules, |
||
25 | FieldMutator; |
||
26 | |||
27 | /** |
||
28 | * Get associated fieldId |
||
29 | * |
||
30 | * @return int|null |
||
31 | */ |
||
32 | public function getFieldId() |
||
41 | |||
42 | /** |
||
43 | * @return FieldInterface|null |
||
44 | */ |
||
45 | protected function resolveField() |
||
53 | |||
54 | /** |
||
55 | * @return FieldInterface|null |
||
56 | */ |
||
57 | private function resolveFieldFromRelation() |
||
71 | |||
72 | /** |
||
73 | * Get the associated Field |
||
74 | * |
||
75 | * @return ActiveQueryInterface |
||
76 | */ |
||
77 | public function getFieldRecord() |
||
84 | } |
||
85 |