示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDistributorLoadings()
 {
     return $this->hasMany(DistributorLoading::className(), ['created_by' => 'user_id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDistributorLoadings()
 {
     return $this->hasMany(DistributorLoading::className(), ['product_id' => 'product_id']);
 }