예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getNotaCompras()
 {
     return $this->hasMany(NotaCompra::className(), ['id_empleado' => 'Id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdNotaCompra()
 {
     return $this->hasOne(NotaCompra::className(), ['id' => 'id_nota_compra']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getNotaCompras()
 {
     return $this->hasMany(NotaCompra::className(), ['id_proveedor' => 'id']);
 }