/** * @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']); }
/** * @return \yii\db\ActiveQuery */ public function getuser() { return $this->hasOne(Authuser::className(), ['auth_user_id' => 'user_id'])->from(['user' => Authuser::tableName()]); }
/** * @return \yii\db\ActiveQuery */ public function getIdperson() { return $this->hasOne(Authuser::className(), ['auth_user_id' => 'id_person'])->from(['idperson' => Authuser::tableName()]); }