View difference between Paste ID: GRN00pgU and AP5wwQNP
SHOW: | | - or go back to the newest paste.
1-
class NewCars extends Nette\Object
1+
2-
{
2+
3-
	/** @var DibiConnection */
3+
            return $this->db->select('nv.*')->from('nove_vozy nv')
4-
	private $db;
4+
		->leftJoin('table t')->on('nv.id = t.nv')
5-
5+
		->where('nv.id = %i', $id)
6-
	public function __construct(DibiConnection $db)
6+
7-
	{
7+
        }