Skip to content

Commit

Permalink
Allowed to remove a user when there are api keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Jun 29, 2020
1 parent 6a3ec0d commit 302c095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Entity/ApiKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 302c095

Please sign in to comment.