svg
This commit is contained in:
@ -44,7 +44,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
private ?string $email = null;
|
||||
|
||||
#[ORM\ManyToMany(targetEntity: Company::class, inversedBy: 'users')]
|
||||
private Collection $companys;
|
||||
private ?Collection $companys;
|
||||
|
||||
#[ORM\ManyToOne()]
|
||||
#[ORM\JoinColumn(nullable: true)]
|
||||
@ -157,7 +157,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
/**
|
||||
* @return Collection<int, Company>
|
||||
*/
|
||||
public function getCompanys(): Collection
|
||||
public function getCompanys(): ?Collection
|
||||
{
|
||||
return $this->companys;
|
||||
}
|
||||
|
Reference in New Issue
Block a user