示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStockWarehouses()
 {
     return $this->hasMany(StockWarehouse::className(), ['partner_id' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStockWarehouses()
 {
     return $this->hasMany(StockWarehouse::className(), ['lot_output_id' => 'id']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWarehouse()
 {
     return $this->hasOne(StockWarehouse::className(), ['id' => 'warehouse_id']);
 }