->andWhere('size(e.tags) = 0');
}
+ /**
+ * Retrieve the number of untagged entries for a user.
+ *
+ * @param int $userId
+ *
+ * @return int
+ */
+ public function countUntaggedEntriesByUser($userId)
+ {
+ return $this->getRawBuilderForUntaggedByUser($userId)
+ ->select('count(e.id)')
+ ->getSingleScalarResult();
+ }
+
/**
* Find Entries.
*