/** * @return ActiveQuery */ public function getValueRelation() { return $this->hasOne(Value::className(), ['id' => 'value_id']); }
/** * @return \yii\db\ActiveQuery */ public function getValuesRelation() { return $this->hasMany(Value::className(), ['attribute_id' => 'id']); }