mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: user can enable/disable a watchlist
This commit is contained in:
@@ -25,6 +25,14 @@ class WatchlistRepository extends ServiceEntityRepository
|
||||
->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
|
||||
public function getEnabledWatchlist()
|
||||
{
|
||||
return $this->createQueryBuilder('w')
|
||||
->select()
|
||||
->where('w.isEnabled = true')
|
||||
->getQuery()->execute();
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @return Watchlist[] Returns an array of Watchlist objects
|
||||
// */
|
||||
|
||||
Reference in New Issue
Block a user