Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEntpProducts()
 {
     return $this->hasMany(EntpProduct::className(), ['entrepreneur_user_id' => 'user_id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEntpProducts()
 {
     return $this->hasMany(EntpProduct::className(), ['product_id' => 'id']);
 }