/** * @return \yii\db\ActiveQuery */ public function getParameters() { return $this->hasMany(Parameters::className(), ['object_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getParam() { return $this->hasOne(Parameters::className(), ['id' => 'param_id']); }