/** * @return \yii\db\ActiveQuery */ public function getVendaIdvenda() { return $this->hasOne(Venda::className(), ['idvenda' => 'venda_idvenda']); }
/** * @return \yii\db\ActiveQuery */ public function getVendas() { return $this->hasMany(Venda::className(), ['id_cliente' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getVendas() { return $this->hasMany(Venda::className(), ['loja_idloja' => 'idloja']); }
/** * @return \yii\db\ActiveQuery */ public function getVendaIdvendas() { return $this->hasMany(Venda::className(), ['idvenda' => 'venda_idvenda'])->viaTable('venda_has_produto', ['produto_idproduto' => 'idproduto']); }
/** * @return \yii\db\ActiveQuery */ public function getVendas() { return $this->hasMany(Venda::className(), ['vendedor_idvendedor' => 'idvendedor']); }
/** * @return \yii\db\ActiveQuery */ public function getVendas() { return $this->hasMany(Venda::className(), ['forma_pagamento_idforma_pagamento' => 'idforma_pagamento']); }