Skip to content

Commit 07e3337

Browse files
committed
test: test against sqlserver and fix failing tests
1 parent 84e1914 commit 07e3337

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/app/Entities/User.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ class User
2626
#[Column(type: 'string', nullable: true)]
2727
public ?string $company = null;
2828

29-
#[BelongsTo(target: User::class, innerKey: 'userId', nullable: true)]
29+
#[BelongsTo(target: User::class, innerKey: 'userId', nullable: true, fkAction: 'NO ACTION')]
3030
public ?User $friend = null;
3131

32-
#[HasMany(target: User::class, outerKey: 'userId', nullable: true)]
32+
#[HasMany(target: User::class, outerKey: 'userId', nullable: true, fkAction: 'NO ACTION')]
3333
public ?iterable $friends = [];
3434

35-
#[HasMany(target: User::class, outerKey: 'userId', nullable: true, collection: 'array')]
35+
#[HasMany(target: User::class, outerKey: 'userId', nullable: true, fkAction: 'NO ACTION', collection: 'array')]
3636
public ?array $friendsAsArray = [];
3737

3838
#[HasMany(target: Role::class)]
3939
public ?Collection $roles;
4040

41-
#[HasMany(target: User::class, outerKey: 'userId', nullable: true, collection: 'illuminate')]
41+
#[HasMany(target: User::class, outerKey: 'userId', nullable: true, fkAction: 'NO ACTION', collection: 'illuminate')]
4242
public ?Collection $friendsAsIlluminateCollection;
4343

4444
#[Column(type: 'string', nullable: true)]

0 commit comments

Comments
 (0)