Guillaume Bourgeois 5 месяцев назад
Родитель
Сommit
cf3cbf16ea
1 измененных файлов: 6 добавлений и 1 удалений
  1. +6
    -1
      Repository/User/VisitorRepositoryQuery.php

+ 6
- 1
Repository/User/VisitorRepositoryQuery.php Просмотреть файл

@@ -14,9 +14,14 @@ class VisitorRepositoryQuery extends AbstractRepositoryQuery

public function filterByCookie(string $cookie = null)
{
return $this
if(is_null($cookie)) {
return $this->andWhere('.cookie IS NULL');
}
else {
return $this
->andWhere('.cookie LIKE :cookie')
->setParameter('cookie', $cookie);
}
}

public function filterByLastAccess(\DateTime $lastAccess)

Загрузка…
Отмена
Сохранить