Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEeMpCategories()
 {
     return $this->hasMany(EeMpCategories::className(), ['marketplace_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMarketplaceCat()
 {
     return $this->hasOne(EeMpCategories::className(), ['id' => 'marketplace_cat_id']);
 }