/** * Returns referencing rows * * @param string $key Other table name * @param string $throughColumn Other table column name * @return HyperSelection * @throws Nette\MemberAccessException */ public function related($key, $throughColumn = NULL) { $groupedSelection = $this->activeRow->related($key, $throughColumn); return $this->factory->createSelection($groupedSelection); }
/** * @param string $tableName * @return HyperSelection */ public function table($tableName) { $selection = $this->context->table($tableName); return $this->factory->createSelection($selection); }