Skip to content

Commit d9bde7e

Browse files
committed
test: make uuids non-nullable
1 parent 56b55ac commit d9bde7e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Integration/Database/CustomPrimaryKeyRelationshipLoadingTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ final class MageWithUuid
289289
{
290290
use IsDatabaseModel;
291291

292-
public ?PrimaryKey $uuid = null;
292+
public PrimaryKey $uuid;
293293

294294
#[HasOne(ownerJoin: 'mage_uuid')]
295295
public ?GrimoireWithUuid $grimoire = null;
@@ -313,7 +313,7 @@ final class GrimoireWithUuid
313313
{
314314
use IsDatabaseModel;
315315

316-
public ?PrimaryKey $uuid = null;
316+
public PrimaryKey $uuid;
317317

318318
#[HasOne(ownerJoin: 'uuid', relationJoin: 'mage_uuid')]
319319
public ?MageWithUuid $mage = null;
@@ -330,7 +330,7 @@ final class SpellWithUuid
330330
{
331331
use IsDatabaseModel;
332332

333-
public ?PrimaryKey $uuid = null;
333+
public PrimaryKey $uuid;
334334

335335
#[HasOne(ownerJoin: 'uuid', relationJoin: 'mage_uuid')]
336336
public ?MageWithUuid $mage = null;
@@ -348,7 +348,7 @@ final class ArtifactWithUuid
348348
{
349349
use IsDatabaseModel;
350350

351-
public ?PrimaryKey $uuid = null;
351+
public PrimaryKey $uuid;
352352

353353
#[HasOne(ownerJoin: 'uuid', relationJoin: 'owner_uuid')]
354354
public ?MageWithUuid $owner = null;
@@ -423,7 +423,7 @@ final class MageSimple
423423
{
424424
use IsDatabaseModel;
425425

426-
public ?PrimaryKey $uuid = null;
426+
public PrimaryKey $uuid;
427427

428428
/** @var \Tests\Tempest\Integration\Database\SpellSimple[] */
429429
#[HasMany]
@@ -440,7 +440,7 @@ final class SpellSimple
440440
{
441441
use IsDatabaseModel;
442442

443-
public ?PrimaryKey $uuid = null;
443+
public PrimaryKey $uuid;
444444

445445
#[BelongsTo]
446446
public ?MageSimple $mage = null;

0 commit comments

Comments
 (0)