Skip to content

Commit

Permalink
test: test against sqlserver and fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 26, 2024
1 parent 84e1914 commit 07e3337
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/app/Entities/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ class User
#[Column(type: 'string', nullable: true)]
public ?string $company = null;

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

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

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

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

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

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

0 comments on commit 07e3337

Please sign in to comment.