/** * @return \yii\db\ActiveQuery */ public function getEntpSuppliers() { return $this->hasMany(EntpSupplier::className(), ['entrepreneur_user_id' => 'user_id']); }
/** * @return \yii\db\ActiveQuery */ public function getEntpSuppliers() { return $this->hasMany(EntpSupplier::className(), ['supplier_id' => 'id']); }