Add text to search criteria and expand placeholder note
This commit is contained in:
@ -39,6 +39,7 @@ class NoteRepository extends ServiceEntityRepository
|
||||
->orderBy('n.date', 'DESC')
|
||||
->where('n.title LIKE :query')
|
||||
->orWhere('n.passage LIKE :query')
|
||||
->orWhere('n.text LIKE :query')
|
||||
->andWhere('n.user = :user')
|
||||
->setParameter('query', "%{$query}%")
|
||||
->setParameter('user', $userId)
|
||||
|
Reference in New Issue
Block a user