feat: update database relation

This commit is contained in:
Maël Gangloff
2024-07-11 17:01:16 +02:00
parent 2c535f754b
commit 270ffc5cb9
16 changed files with 708 additions and 51 deletions

View File

@@ -11,12 +11,12 @@ use Doctrine\ORM\Mapping as ORM;
class DomainEntity
{
#[ORM\Id]
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
#[ORM\JoinColumn(referencedColumnName: 'ldhname', nullable: false)]
#[ORM\ManyToOne(targetEntity: Domain::class, inversedBy: 'domainEntities')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Domain $domain = null;
#[ORM\Id]
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
#[ORM\ManyToOne(targetEntity: Entity::class, inversedBy: 'domainEntities')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Entity $entity = null;