/**
  * @return \yii\db\ActiveQuery
  */
 public function getIdCharacteristic0()
 {
     return $this->hasOne(CharacteristicModel::className(), ['id' => 'idCharacteristic']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCharacteristics()
 {
     return $this->hasMany(CharacteristicModel::className(), ['idCategory' => 'id']);
 }
Example #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdCharacteristics()
 {
     return $this->hasMany(CharacteristicModel::className(), ['id' => 'idCharacteristic'])->viaTable('{characteristic_value}', ['idProduct' => 'id']);
 }