* @param bool $isStarred
* @param string $sort
* @param string $order
+ * @param int $since
+ * @param string $tags
*
* @return array
*/
if ($since >= 0) {
$qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since)));
-
+ }
+
if ('' !== $tags) {
foreach (explode(',', $tags) as $tag) {
$qb->andWhere('t.label = :label')->setParameter('label', $tag);
$this->getEntityManager()->flush();
}
+ /**
+ * Remove tags from all user entries
+ *
+ * @param int $userId
+ * @param Array<Tag> $tags
+ */
+
+ public function removeTags($userId, $tags) {
+ foreach ($tags as $tag) {
+ $this->removeTag($userId, $tag);
+ }
+ }
+
/**
* Find all entries that are attached to a give tag id.
*