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