예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEntrepreneurUsers()
 {
     return $this->hasMany(Entrepreneur::className(), ['user_id' => 'entrepreneur_user_id'])->viaTable('{{%entp_invoice}}', ['invoice_id' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEntrepreneurs()
 {
     return $this->hasMany(Entrepreneur::className(), ['user_id' => 'entrepreneur_id'])->viaTable('{{%entp_supplier}}', ['supplier_id' => 'id']);
 }
예제 #3
0
파일: Mentor.php 프로젝트: azruljamil/smev3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEntrepreneurs()
 {
     return $this->hasMany(Entrepreneur::className(), ['user_id' => 'entrepreneur_user_id'])->viaTable('{{%mentor_entrepreneur}}', ['mentor_id' => 'id']);
 }
예제 #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEntrepreneurUser()
 {
     return $this->hasOne(Entrepreneur::className(), ['user_id' => 'entrepreneur_user_id']);
 }
예제 #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEntrepreneurs()
 {
     return $this->hasMany(Entrepreneur::className(), ['id' => 'entrepreneur_id'])->viaTable('{{%entp_expenses}}', ['expenses_id' => 'id']);
 }