public function __construct(Context $context, IConventions $conventions, $tableName, Nette\Caching\IStorage $cacheStorage = NULL)
{
$this->context = $context;
$this->conventions = $conventions;
$this->name = $tableName;
$this->cache = $cacheStorage ? new Nette\Caching\Cache($cacheStorage, 'Nette.Database.' . md5($context->getConnection()->getDsn())) : NULL;
$this->primary = $conventions->getPrimary($tableName);
$this->sqlBuilder = new SqlBuilder($tableName, $context);
$this->refCache =& $this->getRefTable($refPath)->globalRefCache[$refPath];
}