fix: update table joins

This commit is contained in:
Maël Gangloff
2024-07-10 23:58:59 +02:00
parent cbaca7bf6a
commit 0951f93134
6 changed files with 8 additions and 59 deletions

View File

@@ -9,26 +9,18 @@ use Doctrine\ORM\Mapping as ORM;
class DomainEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
#[ORM\JoinColumn(nullable: false)]
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'ldhname')]
private ?Domain $domain = null;
#[ORM\Id]
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
#[ORM\JoinColumn(nullable: false)]
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'handle')]
private ?Entity $entity = null;
#[ORM\Column(length: 255)]
private ?string $roles = null;
public function getId(): ?int
{
return $this->id;
}
public function getDomain(): ?Domain
{
return $this->domain;