Skip to content

Commit

Permalink
[make:entity] Add PHPDoc var type for Collections
Browse files Browse the repository at this point in the history
Fix legacy test fixtures
  • Loading branch information
b1rdex committed Mar 28, 2024
1 parent 593e971 commit 9f2f699
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class User
#[ORM\Column()]
private ?int $id = null;

/**
* @var Collection<int, UserAvatarPhoto>
*/
#[ORM\OneToMany(mappedBy: 'user', targetEntity: UserAvatarPhoto::class)]
private Collection $avatarPhotos;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class User
#[ORM\Column()]
private ?int $id = null;

/**
* @var Collection<int, UserAvatarPhoto>
*/
#[ORM\OneToMany(mappedBy: 'user', targetEntity: UserAvatarPhoto::class, orphanRemoval: true)]
private Collection $avatarPhotos;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class User
#[ORM\Column()]
private ?int $id = null;

/**
* @var Collection<int, UserAvatarPhoto>
*/
#[ORM\OneToMany(mappedBy: 'user', targetEntity: UserAvatarPhoto::class)]
private Collection $avatarPhotos;

Expand Down

0 comments on commit 9f2f699

Please sign in to comment.