/** * @return \yii\db\ActiveQuery */ public function getTypes() { return $this->hasOne(Types::className(), ['id' => 'types_id']); }
public function getTypesVariants() { return $this->hasMany(Types::className(), ['cardTypeID' => 'id']); //xz }
/** * @return \yii\db\ActiveQuery */ public function getCardType() { return $this->hasOne(Types::className(), ['id' => 'cardTypeID']); }
/** * @return \yii\db\ActiveQuery */ public function getNsType() { return $this->hasOne(Types::className(), ['ID' => 'ns_type']); }