/** * @return \yii\db\ActiveQuery */ public function getShoes() { return $this->hasOne(GearConfiguration::className(), ['id' => 'shoes_id'])->with(['primaryAbility', 'secondaries.ability']); }
/** * @return \yii\db\ActiveQuery */ public function getConfig() { return $this->hasOne(GearConfiguration::className(), ['id' => 'config_id']); }