src/Model/Repository/BaseRepository.php
public function getBy($condition, $parameters = array())
	{
		if (is_array($condition)){
			$query = $this->table();
			foreach ($condition as $column => $parameter) {
				$query->where($column, $parameter);
			}

			return $query->fetch();
		} else {
			return $this->table()->where($condition, $parameters)->fetch();
		}
	}
public function getBy($condition, $parameters = array())
	{
		if (is_array($condition)){
			$query = $this->table();
			foreach ($condition as $column => $parameter) {
				$query->where($column, $parameter);
			}

			return $query->fetch();
		} else {
			return $this->table()->where($condition, $parameters)->fetch();
		}
	}
@param $condition|array with conditions as key and value as parameter
@param array $parameters

@return bool|mixed|Nette\Database\Table\IRow