質問編集履歴
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
実現したいもの
|
18
18
|
|
19
|
-
A
|
19
|
+
Aモデル -> A_Bテーブル + A_Cテーブル
|
20
20
|
|
21
21
|
|
22
22
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
$query = parent::newQuery();
|
38
38
|
|
39
|
-
$query = $query->join('A_B')->on('A_B.id', =, 'A_C.foeg
|
39
|
+
$query = $query->join('A_B')->on('A_B.id', =, 'A_C.foreign_id');
|
40
40
|
|
41
41
|
return $query
|
42
42
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,6 +28,10 @@
|
|
28
28
|
|
29
29
|
{
|
30
30
|
|
31
|
+
protected $table = 'A_B';
|
32
|
+
|
33
|
+
|
34
|
+
|
31
35
|
public function newQuery(){
|
32
36
|
|
33
37
|
$query = parent::newQuery();
|