/** * @return \yii\db\ActiveQuery */ public function getPaymentMethod() { return $this->hasOne(PaymentMethod::className(), ['id' => 'payment_method_id']); }
public function actions() { return ['toggle' => ['class' => ToggleAction::className(), 'modelClass' => PaymentMethod::className()]]; }