Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStockAdjustments()
 {
     return $this->hasMany(StockAdjustment::className(), ['id_warehouse' => 'id_warehouse']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdAdjustment()
 {
     return $this->hasOne(StockAdjustment::className(), ['id_adjustment' => 'id_adjustment']);
 }