Commit d7fce927f44c171631c8b95380217b21a92c7984

Authored by Alexey Boroda
2 parents 0150df3d f13c7243

Merge remote-tracking branch 'origin/master'

common/models/page/CategoryLang.php
@@ -22,6 +22,13 @@ @@ -22,6 +22,13 @@
22 ], 22 ],
23 ]; 23 ];
24 } 24 }
  25 + public static function primaryKey()
  26 + {
  27 + return [
  28 + 'category_id',
  29 + 'language_id',
  30 + ];
  31 + }
25 32
26 public function attributeLabels() 33 public function attributeLabels()
27 { 34 {
common/models/page/PageLang.php
@@ -24,7 +24,13 @@ @@ -24,7 +24,13 @@
24 { 24 {
25 return 'page_lang'; 25 return 'page_lang';
26 } 26 }
27 - 27 + public static function primaryKey()
  28 + {
  29 + return [
  30 + 'page_id',
  31 + 'language_id',
  32 + ];
  33 + }
28 public function attributeLabels() 34 public function attributeLabels()
29 { 35 {
30 return [ 36 return [