Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getNotaVentas()
 {
     return $this->hasMany(NotaVenta::className(), ['id_cliente' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdNotaVenta()
 {
     return $this->hasOne(NotaVenta::className(), ['id' => 'id_nota_venta']);
 }
Exemple #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getNotaVentas()
 {
     return $this->hasMany(NotaVenta::className(), ['id_empleado' => 'Id']);
 }