예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getcards()
 {
     return $this->hasOne(Cards::className(), ['ID_Holder' => 'ID']);
 }
예제 #2
0
파일: Clubs.php 프로젝트: arsik/xfit
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCards()
 {
     return $this->hasMany(Cards::className(), ['clubID' => 'id']);
 }