Beispiel #1
0
 public function getProfile()
 {
     return $this->hasOne(\app\modules\user\models\Profile::className(), ['user_id' => 'id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfiles()
 {
     return $this->hasMany(Profile::className(), ['user_id' => 'id']);
 }
Beispiel #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfile()
 {
     return $this->hasOne(Profile::className(), ['userID' => 'id']);
 }
Beispiel #4
0
 public function getProfile()
 {
     return $this->hasMany(Profile::className(), ['uid' => 'id'])->andWhere(['target_type' => Profile::TYPE]);
 }