/** * @return \yii\db\ActiveQuery */ public function getEntrepreneurUsers() { return $this->hasMany(Entrepreneur::className(), ['user_id' => 'entrepreneur_user_id'])->viaTable('{{%entp_invoice}}', ['invoice_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getEntrepreneurs() { return $this->hasMany(Entrepreneur::className(), ['user_id' => 'entrepreneur_id'])->viaTable('{{%entp_supplier}}', ['supplier_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getEntrepreneurs() { return $this->hasMany(Entrepreneur::className(), ['user_id' => 'entrepreneur_user_id'])->viaTable('{{%mentor_entrepreneur}}', ['mentor_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getEntrepreneurUser() { return $this->hasOne(Entrepreneur::className(), ['user_id' => 'entrepreneur_user_id']); }
/** * @return \yii\db\ActiveQuery */ public function getEntrepreneurs() { return $this->hasMany(Entrepreneur::className(), ['id' => 'entrepreneur_id'])->viaTable('{{%entp_expenses}}', ['expenses_id' => 'id']); }