src/Brick/User/UserManager.php
public function findFulltext($query)
	{

		$like = '%' . $query . '%';

		if ($this->user && $this->user->isInRole('root')) {
			return $this->repository->findAllActive()
									->where('name LIKE ? OR username LIKE ? OR email LIKE ?', $like, $like, $like);

		} else {
			return $this->repository->findAllActive()
									->where('role !=', 'root')
									->where('name LIKE ? OR username LIKE ? OR email LIKE ?', $like, $like, $like);
		}

	}
public function findFulltext($query)
	{

		$like = '%' . $query . '%';

		if ($this->user && $this->user->isInRole('root')) {
			return $this->repository->findAllActive()
									->where('name LIKE ? OR username LIKE ? OR email LIKE ?', $like, $like, $like);

		} else {
			return $this->repository->findAllActive()
									->where('role !=', 'root')
									->where('name LIKE ? OR username LIKE ? OR email LIKE ?', $like, $like, $like);
		}

	}
Vrací řádky podle query

@param string search query

@return Array