/**
* Returns specified row.
*
* @param mixed $key Row's primary key
* @return HyperRow|NULL if there is no such row
*/
public function offsetGet($key)
{
$result = $this->selection->offsetGet($key);
if ($result instanceof ActiveRow) {
return $this->factory->createRow($result, $this->selection->getName());
}
return $result;
}