Skip to content

Commit 12fb0a0

Browse files
committed
fix admin/token relation
1 parent 77e2e77 commit 12fb0a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Domain/Identity/Model/AdministratorToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AdministratorToken implements DomainModel, Identity, CreationDate
4343
private string $key = '';
4444

4545
#[ORM\ManyToOne(targetEntity: Administrator::class)]
46-
#[ORM\JoinColumn(name: 'adminid')]
46+
#[ORM\JoinColumn(name: 'adminid', referencedColumnName: 'id', onDelete: 'CASCADE')]
4747
private ?Administrator $administrator = null;
4848

4949
public function __construct()

0 commit comments

Comments
 (0)