<?php
    protected function createComponentVote()
	{
	    $rows = $this->database->table('user');
	    
	    $rows_ = array();
	    foreach ($rows as $row)
	    {
	    	$rows_[$row->id] = $row;
	    }

	    return new Nette\Application\UI\Multiplier(function ($userId) use ($rows_) {
	        return new App\FrontModule\Components\Vote($rows_[$userId], $this->database);
	    });
	}