/** * @return \yii\db\ActiveQuery */ public function getIdIzmer() { return $this->hasOne(Izmer::className(), ['izmer_id' => 'id_izmer'])->from(['idIzmer' => Izmer::tableName()]); }