예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTypes()
 {
     return $this->hasOne(Types::className(), ['id' => 'types_id']);
 }
예제 #2
0
파일: Types.php 프로젝트: arsik/xfit
 public function getTypesVariants()
 {
     return $this->hasMany(Types::className(), ['cardTypeID' => 'id']);
     //xz
 }
예제 #3
0
파일: Cards.php 프로젝트: arsik/xfit
 /**
  * @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']);
 }