OmgDef/yii2-multilingual-behavior — pull request #6 by MadAnd (2014-12-22 22:35:52+00:00)
Title: Bugfix

I use Yii v2.0.1 and encountered the following bug:
Suppose we have configured 2 languages: 'uk' and 'ru'. Default app lang is 'uk'.
I tried to get localized version in non-default lang like this:
```php
$model = ModelClass::find()->localized('ru')->one();
echo $model->title; // It echoes title in default language, not 'ru'!
```
I found out that relational query condition value was ['and', ['language'=>'uk'], ['language'=>'ru']] that is, default app laguage (applied in MultilingualBehavior::getTranslation()) was and'd with scope's (MultilingualTrait::localized()) supplied parameter.

Simple fix for this misbehavior attached.