-
- // An other solution can be to use raw query but I can't find a way to retrieve the `entry_tag` table name since it can be prefixed....
- // $sql = 'DELETE et FROM entry_tag et WHERE et.entry_id IN ( SELECT e.id FROM entry e WHERE e.user_id = :userId ) AND et.tag_id = :tagId';
- // $stmt = $this->getEntityManager()->getConnection()->prepare($sql);
- // $stmt->execute([
- // 'userId' => $userId,
- // 'tagId' => $tag->getId(),
- // ]);