/** * @return \yii\db\ActiveQuery */ public function getPagamento() { return $this->hasOne(Pagamento::className(), ['idPedido' => 'idPedido']); }