Skip to content

Commit

Permalink
Merge pull request #20 from lingoda/09-cascade-delete-for-the-results
Browse files Browse the repository at this point in the history
Delete h5p_content_results if content deleted
  • Loading branch information
jorisdugue committed Oct 15, 2020
2 parents 4a41f31 + c8e91a1 commit 984c487
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Entity/ContentResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ class ContentResult
*/
private $id;
/**
* @var Content|null
* @var Content
*
* @ORM\ManyToOne(targetEntity="Studit\H5PBundle\Entity\Content")
* @ORM\JoinColumn(onDelete="CASCADE")
*/
private $content;
/**
Expand Down

0 comments on commit 984c487

Please sign in to comment.