Modification du type d'héritage pour régler un probleme de login
This commit is contained in:
parent
113171f195
commit
84985081fe
@ -192,22 +192,6 @@ class Intern extends UserApp
|
||||
}
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
#[ORM\ManyToOne(targetEntity: Company::class)]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?Company $company = null;
|
||||
|
||||
// Getter et setter pour la société
|
||||
public function getCompany(): ?Company
|
||||
{
|
||||
return $this->company;
|
||||
}
|
||||
|
||||
public function setCompany(?Company $company): self
|
||||
{
|
||||
$this->company = $company;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ use Symfony\Component\Security\Core\User\UserInterface;
|
||||
|
||||
#[ORM\Entity(repositoryClass: UserRepository::class)]
|
||||
#[ORM\Table(name: 'userApp')]
|
||||
#[ORM\InheritanceType('JOINED')]
|
||||
#[ORM\InheritanceType('SINGLE_TABLE')]
|
||||
#[ORM\DiscriminatorColumn(name: 'DISCRIMINATOR', type: 'string')]
|
||||
#[ORM\DiscriminatorMap(['employee' => Employee::class, 'intern' => Intern::class])]
|
||||
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_NICKNAME', fields: ['nickname'])]
|
||||
|
Loading…
x
Reference in New Issue
Block a user