コード例 #1
0
ファイル: Parcela.php プロジェクト: alissoncti/sgo
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVendaIdvenda()
 {
     return $this->hasOne(Venda::className(), ['idvenda' => 'venda_idvenda']);
 }
コード例 #2
0
ファイル: Cliente.php プロジェクト: RayCosta/lukids
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVendas()
 {
     return $this->hasMany(Venda::className(), ['id_cliente' => 'id']);
 }
コード例 #3
0
ファイル: Loja.php プロジェクト: alissoncti/sgo
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVendas()
 {
     return $this->hasMany(Venda::className(), ['loja_idloja' => 'idloja']);
 }
コード例 #4
0
ファイル: Produto.php プロジェクト: alissoncti/sgo
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVendaIdvendas()
 {
     return $this->hasMany(Venda::className(), ['idvenda' => 'venda_idvenda'])->viaTable('venda_has_produto', ['produto_idproduto' => 'idproduto']);
 }
コード例 #5
0
ファイル: Vendedor.php プロジェクト: alissoncti/sgo
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVendas()
 {
     return $this->hasMany(Venda::className(), ['vendedor_idvendedor' => 'idvendedor']);
 }
コード例 #6
0
ファイル: FormaPagamento.php プロジェクト: alissoncti/sgo
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVendas()
 {
     return $this->hasMany(Venda::className(), ['forma_pagamento_idforma_pagamento' => 'idforma_pagamento']);
 }