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