src/Brick/User/UserManager.php
public function findBy(array $by)
	{
		if ($this->user && $this->user->isInRole('root')) {
			return $this->repository->findAllActive()
									->where($by);

		} else {
			return $this->repository->findAllActive()
									->where($by)
									->where('role !=', 'root');
		}

	}
public function findBy(array $by)
	{
		if ($this->user && $this->user->isInRole('root')) {
			return $this->repository->findAllActive()
									->where($by);

		} else {
			return $this->repository->findAllActive()
									->where($by)
									->where('role !=', 'root');
		}

	}
Vrací řádky podle filtru

@param Array where ex. array('name' => 'John')

@return Array