예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getusers()
 {
     return $this->hasMany(Authuser::className(), ['auth_user_id' => 'user_id'])->from(['users' => Authuser::tableName()])->viaTable('auth_assignment', ['item_name' => 'name']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getuser()
 {
     return $this->hasOne(Authuser::className(), ['auth_user_id' => 'user_id'])->from(['user' => Authuser::tableName()]);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdperson()
 {
     return $this->hasOne(Authuser::className(), ['auth_user_id' => 'id_person'])->from(['idperson' => Authuser::tableName()]);
 }