diff --git a/common/modules/language/readme.txt b/common/modules/language/readme.txt index e678750..bc0b380 100755 --- a/common/modules/language/readme.txt +++ b/common/modules/language/readme.txt @@ -45,9 +45,6 @@ public function behaviors() { 'ownerKey' => {Table}->id //optional, default to {Table}->primaryKey()[0] 'langKey' => {TableLang}->table_id //optional, default to {Table}->tableName().'_id' ], - 'transaction' => [ - 'class' => TransactionBehavior::className(), - ], ]; } 3.1. PHPDoc для {Table}: diff --git a/common/modules/product/models/ProductSearch.php b/common/modules/product/models/ProductSearch.php index 2f9edf5..6503697 100755 --- a/common/modules/product/models/ProductSearch.php +++ b/common/modules/product/models/ProductSearch.php @@ -92,7 +92,7 @@ }, ]); - $query->groupBy([ 'product.product_id' ]); + $query->groupBy([ 'product.product_id', 'brand_lang.name' ]); $dataProvider = new ActiveDataProvider([ 'query' => $query, -- libgit2 0.21.4