Commit df73bb3bc9099a55e5bce07b3239535f36219d9f
1 parent
f4d2405a
add primary to category, page
Showing
2 changed files
with
14 additions
and
1 deletions
Show diff stats
common/models/page/CategoryLang.php
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 [ |