Basic classes for working with Doctrine 2 and Nette Framework