1 | <?php |
||
25 | abstract class AbstractAssociationAction extends Action |
||
26 | { |
||
27 | use Manage; |
||
28 | |||
29 | /** |
||
30 | * @param string $field |
||
31 | * @return Objects |
||
32 | * @throws HttpException |
||
33 | */ |
||
34 | protected function resolveField(string $field): Objects |
||
42 | |||
43 | /** |
||
44 | * @param Model $model |
||
45 | * @return bool |
||
46 | * @throws RecordNotFoundException |
||
47 | */ |
||
48 | protected function ensureAssociation(Model $model): bool |
||
60 | |||
61 | /** |
||
62 | * @param int $fieldId |
||
63 | * @throws HttpException |
||
64 | */ |
||
65 | protected function handleInvalidFieldResponse(int $fieldId) |
||
73 | |||
74 | /** |
||
75 | * @param int $elementId |
||
76 | * @throws HttpException |
||
77 | */ |
||
78 | protected function handleInvalidElementResponse(int $elementId) |
||
86 | } |
||
87 |