namespace Wallabag\CoreBundle\Event\Subscriber;
+use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Wallabag\CoreBundle\Entity\Entry;
-use Doctrine\Bundle\DoctrineBundle\Registry;
/**
* SQLite doesn't care about cascading remove, so we need to manually remove associated stuf for an Entry.
{
private $doctrine;
- /**
- * @param \Doctrine\Bundle\DoctrineBundle\Registry $doctrine
- */
public function __construct(Registry $doctrine)
{
$this->doctrine = $doctrine;
/**
* We removed everything related to the upcoming removed entry because SQLite can't handle it on it own.
* We do it in the preRemove, because we can't retrieve tags in the postRemove (because the entry id is gone).
- *
- * @param LifecycleEventArgs $args
*/
public function preRemove(LifecycleEventArgs $args)
{