@@ -29,8 +29,8 @@ public function testScopeWhereHasTranslationDefaultParameters(): void
29
29
});
30
30
31
31
$ this ->assertEquals (
32
- 'select * from ` examples` where exists (select * from ` example_translations` where ' .
33
- '` examples`.`id` = ` example_translations`.` example_id` and ` locale` = ?) ' ,
32
+ 'select * from " examples" where exists (select * from " example_translations" where ' .
33
+ '" examples"."id" = " example_translations"." example_id" and " locale" = ?) ' ,
34
34
$ query ->toSql ()
35
35
);
36
36
@@ -51,8 +51,8 @@ public function testScopeWhereHasTranslationWithParameters(): void
51
51
}, 'fr ' , '> ' , 2 );
52
52
53
53
$ this ->assertEquals (
54
- 'select * from ` examples` where (select count(*) from ` example_translations` where ' .
55
- '` examples`.`id` = ` example_translations`.` example_id` and ` locale` = ?) > 2 ' ,
54
+ 'select * from " examples" where (select count(*) from " example_translations" where ' .
55
+ '" examples"."id" = " example_translations"." example_id" and " locale" = ?) > 2 ' ,
56
56
$ query ->toSql ()
57
57
);
58
58
@@ -73,8 +73,8 @@ public function testScopeWhereHasTranslationWithCallback(): void
73
73
});
74
74
75
75
$ this ->assertEquals (
76
- 'select * from ` examples` where exists (select * from ` example_translations` where ' .
77
- '` examples`.`id` = ` example_translations`.` example_id` and ` locale` = ? and ` description` like ?) ' ,
76
+ 'select * from " examples" where exists (select * from " example_translations" where ' .
77
+ '" examples"."id" = " example_translations"." example_id" and " locale" = ? and " description" like ?) ' ,
78
78
$ query ->toSql ()
79
79
);
80
80
@@ -93,8 +93,8 @@ public function testScopeHasTranslation(): void
93
93
$ query = Example::query ()->HasTranslation ('description ' , 'test ' , 'fr ' , 'like ' );
94
94
95
95
$ this ->assertEquals (
96
- 'select * from ` examples` where exists (select * from ` example_translations` where ' .
97
- '` examples`.`id` = ` example_translations`.` example_id` and ` locale` = ? and ` description` like ?) ' ,
96
+ 'select * from " examples" where exists (select * from " example_translations" where ' .
97
+ '" examples"."id" = " example_translations"." example_id" and " locale" = ? and " description" like ?) ' ,
98
98
$ query ->toSql ()
99
99
);
100
100
@@ -113,8 +113,8 @@ public function testScopeWhereTranslation(): void
113
113
$ query = Example::query ()->WhereTranslation ('name ' , 'like ' , 'name1 ' , 'fr ' );
114
114
115
115
$ this ->assertEquals (
116
- 'select * from ` examples` where exists (select * from ` example_translations` where ' .
117
- '` examples`.`id` = ` example_translations`.` example_id` and ` locale` = ? and ` name` like ?) ' ,
116
+ 'select * from " examples" where exists (select * from " example_translations" where ' .
117
+ '" examples"."id" = " example_translations"." example_id" and " locale" = ? and " name" like ?) ' ,
118
118
$ query ->toSql ()
119
119
);
120
120
@@ -133,8 +133,8 @@ public function testScopeWhereTranslationMixedValue(): void
133
133
$ query = Example::query ()->WhereTranslation ('name ' , '>= ' , '2 ' , 'fr ' );
134
134
135
135
$ this ->assertEquals (
136
- 'select * from ` examples` where exists (select * from ` example_translations` where ' .
137
- '` examples`.`id` = ` example_translations`.` example_id` and ` locale` = ? and ` name` >= ?) ' ,
136
+ 'select * from " examples" where exists (select * from " example_translations" where ' .
137
+ '" examples"."id" = " example_translations"." example_id" and " locale" = ? and " name" >= ?) ' ,
138
138
$ query ->toSql ()
139
139
);
140
140
@@ -153,8 +153,8 @@ public function testScopeJoinTranslation(): void
153
153
$ query = Example::query ()->JoinTranslation ();
154
154
155
155
$ this ->assertEquals (
156
- 'select * from ` examples` left join ` example_translations` on ' .
157
- '` example_translations`.` example_id` = ` examples`.`id` where ` example_translations`.` locale` = ? ' ,
156
+ 'select * from " examples" left join " example_translations" on ' .
157
+ '" example_translations"." example_id" = " examples"."id" where " example_translations"." locale" = ? ' ,
158
158
$ query ->toSql ()
159
159
);
160
160
@@ -173,8 +173,8 @@ public function testScopeJoinTranslationWithLocaleParameter(): void
173
173
$ query = Example::query ()->JoinTranslation ('fr ' );
174
174
175
175
$ this ->assertEquals (
176
- 'select * from ` examples` left join ` example_translations` on ' .
177
- '` example_translations`.` example_id` = ` examples`.`id` where ` example_translations`.` locale` = ? ' ,
176
+ 'select * from " examples" left join " example_translations" on ' .
177
+ '" example_translations"." example_id" = " examples"."id" where " example_translations"." locale" = ? ' ,
178
178
$ query ->toSql ()
179
179
);
180
180
0 commit comments