/** * Returns value of column / referenced row * * @param $key * @return mixed|HyperRow|HyperSelection */ public function &__get($key) { // Try to get method - getter if (ObjectMixin::has($this, $key)) { return ObjectMixin::get($this, $key); } // Otherwise get ActiveRow property $result = $this->activeRow->__get($key); if ($result instanceof ActiveRow) { $hyperrow = $this->factory->createRow($result, $result->getTable()->getName()); return $hyperrow; } return $result; }
/** * Returns property value. Do not call directly. * * @param string $name * * @throws \Nette\MemberAccessException * @return mixed */ public function &__get($name) { return ObjectMixin::get($this, $name); }
/** * Returns property value. Do not call directly. * @param string property name * @return mixed property value * @throws MemberAccessException if the property is not defined. */ public function &__get($name) { return Nette\Utils\ObjectMixin::get($this, $name); }