| 1 | <?php |
||
| 22 | class Dissociate extends Action |
||
| 23 | { |
||
| 24 | use ManageTrait, |
||
| 25 | ResolverTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | public $statusCodeSuccess = 201; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $field |
||
| 34 | * @param string $source |
||
| 35 | * @param string $target |
||
| 36 | * @param int|null $siteId |
||
| 37 | * @return mixed |
||
| 38 | * @throws \yii\web\HttpException |
||
| 39 | */ |
||
| 40 | public function run( |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param Association $record |
||
| 72 | * @return bool |
||
| 73 | * @throws \Throwable |
||
| 74 | * @throws \yii\db\StaleObjectException |
||
| 75 | */ |
||
| 76 | protected function performAction(Association $record): bool |
||
| 80 | } |
||
| 81 |