File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ abstract class Model extends BaseModel
32
32
* @var string
33
33
*/
34
34
protected $ primaryKey = '_id ' ;
35
-
35
+
36
36
/**
37
37
* The primary key type.
38
38
*
@@ -175,7 +175,7 @@ protected function getAttributeFromArray($key)
175
175
public function setAttribute ($ key , $ value )
176
176
{
177
177
// Convert _id to ObjectID.
178
- if (( $ key == '_id ' || Str:: endsWith ( $ key , ' _id ' )) && is_string ($ value )) {
178
+ if ($ key == '_id ' && is_string ($ value )) {
179
179
$ builder = $ this ->newBaseQueryBuilder ();
180
180
181
181
$ value = $ builder ->convertKey ($ value );
Original file line number Diff line number Diff line change @@ -906,7 +906,7 @@ protected function compileWheres()
906
906
}
907
907
908
908
// Convert id's.
909
- if (isset ($ where ['column ' ]) && ($ where ['column ' ] == '_id ' || Str::endsWith ($ where ['column ' ], '_id ' ))) {
909
+ if (isset ($ where ['column ' ]) && ($ where ['column ' ] == '_id ' || Str::endsWith ($ where ['column ' ], '. _id ' ))) {
910
910
// Multiple values.
911
911
if (isset ($ where ['values ' ])) {
912
912
foreach ($ where ['values ' ] as &$ value ) {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public function testQueueJobLifeCycle()
24
24
'displayName ' => 'test ' ,
25
25
'job ' => 'test ' ,
26
26
'maxTries ' => null ,
27
+ 'delay ' => null ,
27
28
'timeout ' => null ,
28
29
'data ' => ['action ' => 'QueueJobLifeCycle ' ],
29
30
]), $ job ->getRawBody ());
You can’t perform that action at this time.
0 commit comments