Anastasia
/
energyforum
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Commits
Compare
Branches
2
Tags
0
Compare View
switch
from
...
to
Compare
Commits (2)
add primary to category, page
df73bb3b
Anastasia
authored
2018-08-31 14:07:35 +0300
Browse Code »
Merge remote-tracking branch 'origin/master'
f13c7243
Anastasia
authored
2018-08-31 14:07:58 +0300
Browse Code »
Showing
2 changed files
Show diff stats
common/models/page/CategoryLang.php
common/models/page/PageLang.php
Inline
Side-by-side
common/models/page/CategoryLang.php
Wrap text
Show/Hide comments
View file @
f13c724
...
...
@@ -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
33
public function attributeLabels()
27
34
{
...
...
common/models/page/PageLang.php
Wrap text
Show/Hide comments
View file @
f13c724
...
...
@@ -24,7 +24,13 @@
24
24
{
25
25
return 'page_lang';
26
26
}
27
-
27
+ public static function primaryKey()
28
+ {
29
+ return [
30
+ 'page_id',
31
+ 'language_id',
32
+ ];
33
+ }
28
34
public function attributeLabels()
29
35
{
30
36
return [
...
...