Exemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTypes()
 {
     return $this->hasOne(Types::className(), ['id' => 'types_id']);
 }
Exemplo n.º 2
0
Arquivo: Types.php Projeto: arsik/xfit
 public function getTypesVariants()
 {
     return $this->hasMany(Types::className(), ['cardTypeID' => 'id']);
     //xz
 }
Exemplo n.º 3
0
Arquivo: Cards.php Projeto: 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']);
 }