diff --git a/application/src/Entity/ApiKey.php b/application/src/Entity/ApiKey.php index cbc7dc9acd..d4485cb555 100644 --- a/application/src/Entity/ApiKey.php +++ b/application/src/Entity/ApiKey.php @@ -62,7 +62,7 @@ class ApiKey extends AbstractEntity * The associated user * * @ManyToOne(targetEntity="User", inversedBy="keys", fetch="EAGER") - * @JoinColumn(nullable=false) + * @JoinColumn(nullable=false, onDelete="CASCADE") */ protected $owner;