where(['user_id' => Yii::$app->user->getId()]); return Helper::index($query); } /** * @return bool * @throws NotFoundHttpException * @throws Yii\base\InvalidConfigException * @throws Yii\db\StaleObjectException * @throws Throwable * @throws yii\base\Exception * @throws yii\web\BadRequestHttpException * @throws yii\web\ServerErrorHttpException */ public function actionUpdate() { return $this->object->update(); } /** * @return Address|null * @throws NotFoundHttpException * @throws yii\base\Exception * @throws yii\web\BadRequestHttpException * @throws yii\web\ServerErrorHttpException */ public function actionCreate() { return $this->object->create(); } }