Commit 4aa38690b4c4ee1a316066bed520427e97583c05
1 parent
be50cffc
- set pk in category lang table
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
common/models/page/CategoryLang.php
@@ -11,6 +11,13 @@ | @@ -11,6 +11,13 @@ | ||
11 | return 'page_category_lang'; | 11 | return 'page_category_lang'; |
12 | } | 12 | } |
13 | 13 | ||
14 | + public static function primaryKey() | ||
15 | + { | ||
16 | + return [ | ||
17 | + 'language_id', | ||
18 | + 'page_category_id' | ||
19 | + ]; | ||
20 | + } | ||
14 | public function rules() | 21 | public function rules() |
15 | { | 22 | { |
16 | return [ | 23 | return [ |