예제 #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']);
 }