lajax / yii2-translate-manager

Translation Manager
MIT License
227 stars 90 forks source link

Problem with quoted field in query #130

Open ilbassa opened 5 years ago

ilbassa commented 5 years ago

I suggest to modify query on row 121 of models/LanguageTranslate.php Language from return static::find()->where('id = :id AND language != :language', [':id' => $this->id, 'language' => $this->language])->all(); to return static::find()->where(['id'=> $this->id])->andWhere(['!=', 'language', $this->language])->all();

this help with db ORACLE that has problem with case sensitive field names.