Переглянути джерело

Merge branch 'develop'

master
Guillaume Bourgeois 6 місяці тому
джерело
коміт
cf3cbf16ea
1 змінених файлів з 6 додано та 1 видалено
  1. +6
    -1
      Repository/User/VisitorRepositoryQuery.php

+ 6
- 1
Repository/User/VisitorRepositoryQuery.php Переглянути файл



public function filterByCookie(string $cookie = null) 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') ->andWhere('.cookie LIKE :cookie')
->setParameter('cookie', $cookie); ->setParameter('cookie', $cookie);
}
} }


public function filterByLastAccess(\DateTime $lastAccess) public function filterByLastAccess(\DateTime $lastAccess)

Завантаження…
Відмінити
Зберегти