/** * @return \yii\db\ActiveQuery */ public function getcards() { return $this->hasOne(Cards::className(), ['ID_Holder' => 'ID']); }
/** * @return \yii\db\ActiveQuery */ public function getCards() { return $this->hasMany(Cards::className(), ['clubID' => 'id']); }