Skip to content

Commit aea3f9d

Browse files
committed
fix: Fixed SQLSRV datetime format
1 parent d7ada46 commit aea3f9d

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎docs/models/entities.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ var_dump(
837837
$user2->role, // 'admin'
838838
$user2->isBanned, // null
839839
array_key_exists('isBanned', $user2->toArray()), // false
840-
$user2->profile instanceof stdClass, // false
840+
$user2->profile instanceof stdClass, // false
841841
$user2->hasChanged(), // false
842842
);
843843

@@ -848,11 +848,11 @@ $user3 = (new User())->injectRawData([
848848
]);
849849

850850
var_dump(
851-
$user3->role, // 'admin'
852-
$user3->isBanned, // '0'
853-
$user3->toArray()['isBanned'], // '0'
851+
$user3->role, // 'admin'
852+
$user3->isBanned, // '0'
853+
$user3->toArray()['isBanned'], // '0'
854854
$user3->profile instanceof stdClass, // true
855-
$user3->hasChanged(), // false
855+
$user3->hasChanged(), // false
856856
);
857857
```
858858

‎tests/_support/Entity/Member.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Member extends Entity
2424
'country' => 'unknown',
2525
'created_at' => '2026-11-10 14:50:00',
2626
'updated_at' => '2026-11-10 14:50:00',
27-
'deleted_at' => '2026-11-10 14:50:00',
27+
'deleted_at' => null,
2828

2929
// The property is not stored in the database
3030
'profile' => 'unknown',

‎tests/system/Models/UpdateModelTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ public static function provideUpdateOnlyChangedAndMergeAttributesOnInjectFlags()
751751
'country' => 'unknown',
752752
'created_at' => '2026-11-10 14:50:00',
753753
'updated_at' => '2026-11-10 14:50:00',
754-
'deleted_at' => '2026-11-10 14:50:00',
754+
'deleted_at' => null,
755755
'profile' => 'profile',
756756
'virtual' => 'new property',
757757
],
@@ -806,7 +806,7 @@ public static function provideUpdateOnlyChangedAndMergeAttributesOnInjectFlags()
806806
'country' => 'unknown',
807807
'created_at' => '2026-11-10 14:50:00',
808808
'updated_at' => '2026-11-10 14:50:00',
809-
'deleted_at' => '2026-11-10 14:50:00',
809+
'deleted_at' => null,
810810
'profile' => 'profile',
811811
'virtual' => 'new property',
812812
],
@@ -817,7 +817,7 @@ public static function provideUpdateOnlyChangedAndMergeAttributesOnInjectFlags()
817817
'country' => 'unknown',
818818
'created_at' => null,
819819
'updated_at' => null,
820-
'deleted_at' => '2026-11-10 14:50:00',
820+
'deleted_at' => null,
821821
'profile' => 'profile',
822822
],
823823
];

0 commit comments

Comments
 (0)