示例#1
0
 /**
  * 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);
 }
示例#2
0
 /**
  * @param string $tableName
  * @return HyperSelection
  */
 public function table($tableName)
 {
     $selection = $this->context->table($tableName);
     return $this->factory->createSelection($selection);
 }