]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/Entry.php
Remove tag relation when removing an entry
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Entry.php
index 24b24dbb13dc6ac29cc6a5fd736367cf26d72387..bf8db5ab31b2c2468333dffa8629c853656f6590 100644 (file)
@@ -168,7 +168,7 @@ class Entry
     private $user;
 
     /**
-     * @ORM\ManyToMany(targetEntity="Tag", inversedBy="entries", cascade={"persist"})
+     * @ORM\ManyToMany(targetEntity="Tag", inversedBy="entries", cascade={"persist", "remove"})
      * @ORM\JoinTable
      *
      * @Groups({"entries_for_user", "export_all"})