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